Disabling the browser back button
-
Hi all... I want to disable the browser back button. Is there anyway possible . I heard of some meta tags but dont know how to use them . Can anyone tell me a perfect solution to this that I can just place in the master page and it will do all the work. Waiting in anticipation Sam
Bye
-
Hi all... I want to disable the browser back button. Is there anyway possible . I heard of some meta tags but dont know how to use them . Can anyone tell me a perfect solution to this that I can just place in the master page and it will do all the work. Waiting in anticipation Sam
Bye
There are no straight forward way of disabling back button. You can try appending
history.forward()
in the firstline of the page as a workaround so that when the page is back pressed, then, the browser would push it forward. If it helps then rate meB
asharatA
li Internee METESYS Lahore Pakistan -
There are no straight forward way of disabling back button. You can try appending
history.forward()
in the firstline of the page as a workaround so that when the page is back pressed, then, the browser would push it forward. If it helps then rate meB
asharatA
li Internee METESYS Lahore Pakistani have tried this method as well but once i get the postback on the page and then click the back button, despite all the correct url the page is directed to cannot find server. I have tried this as well. javascript:window.history.forward(1); Now i also tried this but of no use. :sigh:
Bye
-
Hi all... I want to disable the browser back button. Is there anyway possible . I heard of some meta tags but dont know how to use them . Can anyone tell me a perfect solution to this that I can just place in the master page and it will do all the work. Waiting in anticipation Sam
Bye
-
-
Hi all... I want to disable the browser back button. Is there anyway possible . I heard of some meta tags but dont know how to use them . Can anyone tell me a perfect solution to this that I can just place in the master page and it will do all the work. Waiting in anticipation Sam
Bye
You shouldn't be able to as far as I know. One practice is to prevent the page from caching i.e. In your aspx page: <% Response.CacheControl = "no-cache"; Response.AppendHeader("Pragma", "no-cache"); Response.Expires = -1; Response.Cache.SetNoStore(); %> Some combination of these commands should stop caching. Then use the pageload event to redirect as necessary. Good Luck.