473,473 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

beginner: href link like "back"

Hello,
(I am sorry for my English, it is not my native language.)
I am new to JavaScript. Could you help me please with the following
problem?:
I need to make a href link on HTML page that leads the user back to
the previus page. I did it (accourding to downloaded course) this way:
<a href="javascript:history.back()">Back</a>
It doesn't work. Could you tell me plase and suggest correct solution?
Thank you very much.
Nov 23 '05 #1
1 1431
Ma³y Piotruœ said the following on 11/12/2005 12:18 PM:
Hello,
(I am sorry for my English, it is not my native language.)
I am new to JavaScript. Could you help me please with the following
problem?:
That problem of yours was already asked/answered in this group in the
last 2 days.
I need to make a href link on HTML page that leads the user back to
the previus page. I did it (accourding to downloaded course) this way:
<a href="javascript:history.back()">Back</a>


You need to find a new course.

But, when you opened that page, was there anything in the history to go
back to? Meaning, if you open that page first, there is nowhere to go
"back" to so no, it won't work. And you can *not* make it work reliably
in a default security environment on the web.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ma³y Piotruœ | last post by:
Hello, (Sorry for my english.) I am new to HTML/JavaScript/CSS. I would like to ask for help with such a problem: I need to create a href link working like "back" button (I know this is not...
0
by: Quentin Huo | last post by:
Hi: In my page, there is a user control and there are some actions in the user control like "save", "delete",...which are the control <asp:button onclick="btSave_Click" ......>. And there are...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.