OK i can't emulate it, but some pages when i press the back button appears with the error "This page expired" , or something like that.
how can i implement this??
that is because you posted a form, or something to that page and the content is dynamic. it should say the page has expired, would you like to post the form data again, or something like that. you can't do that with javascript.
Jared, that suggestion looks familiar ;-) That will prevent you from going "back" while on your site, however, you can still access the history list and go back to before you were on your site, so it doesn't quite clear the history, but it may accomplish what Mitch is trying to do.
Also, I think history.length is read-only, but if not, then you could try setting history.length=0.
Sincerely,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.