Disable back button

  JAVASCRIPT   Wednesday, June 17, 2015   4230 | 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>