admin
05-29-2003, 12:03 AM
You can use the javascript:history.go(#) method to return the user back to the page he was at before getting to the current page. Ok, so it's not vbscript, but it's still pretty cool.
<a href="javascript:history.go(-1)"> is like hitting your back button one time.
<a href="javascript:history.go(-2)"> is like hitting your back button twice.
And as you may have guessed, you can forward as well by adding a positive number such as 8. Like hitting the forward button 8 times.
<a href="javascript:history.go(-1)"> is like hitting your back button one time.
<a href="javascript:history.go(-2)"> is like hitting your back button twice.
And as you may have guessed, you can forward as well by adding a positive number such as 8. Like hitting the forward button 8 times.