Hello,
What does the link tag look like to create a link that will move the visitor to the second to last page in their browser? I know somewhere in it, it says javascript(history:go;back). but what is it exactly?
Thanks!
| SitePoint Sponsor |



Hello,
What does the link tag look like to create a link that will move the visitor to the second to last page in their browser? I know somewhere in it, it says javascript(history:go;back). but what is it exactly?
Thanks!
Corbb O'Connor
Looking for quality website design or database programming?
Contact me for more information and a FREE quote!





http://www.sitepointforums.com/showt...t=history.back will provide the correct answer for youBut just for brevity...
<a href="javascript:history.go(-2)">Back 2 pages</a> (without the space between java and script - the space has been automatically inserted by the forum software)



Thanks a million!
Corbb O'Connor
Looking for quality website design or database programming?
Contact me for more information and a FREE quote!
You can do it as a form button
<form>
<input type="button" value="Return to previous page"
onclick="history.go(-2)"
</form>
or an image
<p><img src="yourimage.gif" width="" height="" alt="Back"
onclick="history.go(-2)"></p>
Bookmarks