www.fromthevalley.com.au

Disable Back Button using Javascript

<html>
<head>
<script type="text/javascript">
    window.history.forward();
    function noBack(){ window.history.forward(); }
</script>
</head>
<body  onload="noBack();" onpageshow="if (event.persisted) noBack();" onunload="">

<a href="to.html">This is it</a>

</body>

</html>

 

This must be installed on the page before you don't want people to go back.

HOME |  AJAX |  APACHE |  Bizphone |  CSS |  DNS |  General |  Graphics |  HTML |  Hardware |  Javascript |  Linux |  MAC |  MS SQL |  Mail |  Microsoft |  OFFICE 365 |  Perl |  Postgres |  SEO |  Social Media |  VMware |  Windows 10