Click to See Complete Forum and Search --> : replace() function


webrunner
06-25-2003, 04:41 PM
I became aware of a replace function. You call it location.replace() or parent.framename.location.replace()
What does this do and what are the benefits. Will it replace the url and prevent people from using the back button to go to a newly redirected url. IF not how do I redirect people within a frame so that people do not go back to the page that was supposed to be redirected by hitting the back button. Thank you.

pyro
06-25-2003, 04:49 PM
Yes, replace() will remove the page from the browsers history, thus not allowing them to browse back to the page.