Click to See Complete Forum and Search --> : JavaScript/ how to delete a URL from history?


lifemaze
June 13th, 2001, 02:06 PM
I have a page that redirects a visitor to another page. Is it possible to make it so that when the visitor is on that next page, and hits a BACK button, he would not get to the redirecting page, but to the page before it?

Thank you

Surrendermonkey
June 14th, 2001, 08:07 AM
This is no problem.

Javascript:
window.location.replace "yourURL"

This replaces (in the history list) the Url from which it is called with the URL specified. Thus, the "Back" button functionality goes back not to the page which redirected, but the one before, just as you wish.

Have fun,

surrendermonkey

Colon-Hyphen-Close-Bracket