• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

question for my website

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

WejRepus

Member
Joined
Apr 23, 2003
Location
Redwood City, CA
this might be really easy, i dont know
what do i do if i want to have a link which is the equivlant of the "back" button. I have a script set up so that the user clicks an image, it shows text for 5 seconds, but after the 5 seconds, instead of reutrning to a specific page like my home page i want it to go to whatever they were looking at last
 
<meta http-equiv="Refresh" content="5; url='javascript:history.back()'">

That will automatically redirect after 5 seconds. If you want to supply a link back, you can do an:

<a href="javascript:history.back()">Back</a>

[EDIT]just fixing a typo[/EDIT]
 
Last edited:
Back