PDA

View Full Version : History button



Kandicav
03-10-2002, 09:51 PM
I know I have asked this before, but now i cannot seem to find it. I need help here. Can you explain to me what a history button is and what exactly it does? And how it is different than a back button.

I have several pages that reference other pages on my site. Take for example if someone is reading...

"blah blah blah blah Kandi blah blah blah blah"
And Kandi is linked to Kandi's page, they want to go look at my page. So then they go to look for a back button, but if they push the back button it will take them to another page, because that's the way i have it hooked up. So then they have to hit the home button and start all over. I usually use my browsers back button, but some people dont do that or dont want to. Is there an easy way to do this, or shall i just put text into my page that says to use your browsers back button to go back. HELP????:confused: :?:

no_mac_jack
03-10-2002, 10:35 PM
Both of these *should* work the same way as your back button. (I haven't tried them) If you need to change it a little bit, you can change the -1 to whatever number you need (ex -2 = back two pages, 1 = forward one page, etc.)

<a href="javascript: history.go(-1)">Back</a>

<input type="button" value="Back" onClick="history.go(-1);">

Let me know how those work out!

~no_mac_jack