Hi,
I'm using following code to disable browser back button,
I have two pages Page 1 and Page 2, I have link in Page 1 to go Page 2. In that Page 2 I want to disable back button,
See below is my Code,
Page 1
<body>
<div class="grid_3 sidenav">
<ul>
<li><img src="images/login-img.png" width="25px" height="18px" align="left" /><a href="#">LogIn</a></li>
<li><a href="Page2.html">LogIn Page</a></li>
</ul>
</div>
</body>
Page 2
<head>
<script type="text/javascript">
function prevent()
{
window.history.forward(1);
}
</script>
</head>
<body action="prevent()" onpageshow="if (event.persisted) prevent();" onunload=""> ...
Go to the complete details ...