Hi,
I have a page, that many other sites link too. Is it possible to have one back button at the bottom of the page, which will take the visitors back to the site they came from?
Will anyone know the code to this?
Thanks
Kam
Just use a simple Javascript :
-----
<a href="#" onClick="history.go(-1)">Back</a>
<input type=button value="Back" onClick="history.go(-1)">
<!-- Change the value of -1 to any number of pages you would like to send your visitors back -->
---------
Enjoy,
also look for codes at http://www.javascript.com
Hi,
Thanks for the reply,
If I wanted to add the code to an object (I'm using NetObjects Fusion 5) would I just put:
<a href="#" onClick="history.go(-1)"a>
Jep...
just use the "<a href..." code on the object.
One website at a time
An alternative would be
<a href="javascript :history.go(-1)">
I think this works.
This way, the link will still act like a link (ie it will have an underline, if your stylesheets give links an underline).
Thanks for the help Jazztie and mmj
All working now!
Thanks again
Kam
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks