...

View Full Version : back to last page visited



j9lemmon
08-04-2006, 05:55 PM
Can someone tell me how to create a link in an html page that takes you back to the last page visited? In other words it acts as a back button. I'm pretty sure this requires javascript.
Thanks...

georgeolm
08-04-2006, 06:02 PM
<input type=button value="Back" onClick="history.go(-1)">

felgall
08-05-2006, 12:33 AM
<input> fields need to be inside forms to be valid. If you just want a stand alone button then:

<button onclick="history.back()">BACK</button>

j9lemmon
08-05-2006, 04:25 PM
Thanks for the tips!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum