February 27, 2018

Disable Browser Back Button Functionality using JavaScript

<script type = "text/javascript" >
   function preventBack(){window.history.forward();}
    setTimeout("preventBack()", 0);
    window.onunload=function(){null};
</script>

Suppose there are two pages Page1.aspx and Page2.aspx and Page1.aspx redirects to Page2.aspx

Dashboard | Log in
   

No comments:

Post a Comment