PDA

View Full Version : question for my website


WejRepus
02-25-04, 06:52 PM
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

druidelder
02-25-04, 07:29 PM
<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>

just fixing a typo

WejRepus
02-25-04, 07:46 PM
thank you very much