Monday, 21 July 2014

Disable browser's Back button in asp.net (JavaScript).



Below JavaScript function to disable back button of browser:- 


<script type="text/JavaScript" language="JavaScript">
function disable_browser_back_button()
{
window.history.forward();
}
</script>












Call above function on button onload event:


<body onload="disable_browser_back_button();"> 




No comments:

Post a Comment