Jump to content


Photo

Create A Simple Back Link


  • This topic is locked This topic is locked
No replies to this topic

#1 TCH-Sales

TCH-Sales

    Support

  • Members
  • PipPipPipPip
  • 1,516 posts

Posted 16 September 2003 - 09:30 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users