Disable Browser Back Button Using Javascript:

Just put this javascript on the html section to disable browser's back button.(avoid user going to previous page by clicking on back button of browser).

The scripts work all major browsers like IE,FF.Chrome

<script language="javascript" type="text/javascript">

        noBack2();

        function noBack2(){window.history.forward();}
        window.onload=noBack2;
        window.onpageshow=function(evt){if(evt.persisted)noBack2();}
        window.onunload=function(){void(0);}

</script>


0 comments

Related Posts Plugin for WordPress, Blogger...