Disable back button

  JAVASCRIPT   Wednesday, June 17, 2015   3371 | No Comments Yet!!! | No Download | No Demo | Praveen Joshi
 Tags: disable the back button and rewrite the Url 


 <script type="text/javascript">
       
        history.pushState(null, null, 'Action');
        window.addEventListener('popstate', function (event) {
            history.pushState(null, null, 'Action');
        });

    </script>

 


Post Comments

if you have some suggestion, question, request on Disable back button.

Please use the comment box to express your views.

 

Comments: