Jump to content
Sign in to follow this  

Create A Simple Back Link

Recommended Posts

Making it easy to navigate inside of your web site is one of the most important things that you can do for your visitors. This little trick was one of the firsts I learn of when studying HTML tricks and I thought the fine folks of the TotalChoice Hosting Family Forums would enjoy it.


><a href="#" onClick="history.go(-1);return true;">Send Me Back A Page!</a>


This tells the browser to go back one page. That's it! No mater what the page is before it, it will go back. The only problem happens when that page happens to be the first that you pull up. When that happens you'll get a browser window pop up and tell you "Do you really want to close this page?" since there was no page to go back to, by the logic of your browser that is.

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this