Disable the back button of browser

Madhu.b.rokkam
Posted by Madhu.b.rokkam under ASP.NET category on | Points: 40 | Views : 2715
We have many ways to disable the back button

Response.Cache.SetCacheability(HTTPCacheability.NoCache);

Response.Cache.SetAllowResponseInBrowserHistory(false);

or

document.location.replace("url") //in javascript

or

window.history.forward(1); //in Javascript

Comments or Responses

Login to post response