hi all,
i need to disable the back button if the url address is login.php. so i am having the code for restricting the back button. so if in url the address is login.php then the browser back button should not work.
here is my code for restrcting back button.
<script language="javascript" type="text/javascript">
function backButtonOverride()
{
setTimeout("backButtonOverrideBody()", 1);
}
function backButtonOverrideBody()
{
try {
history.forward();
} catch (e) {
// OK to ignore
}
setTimeout("backButtonOverrideBody()", 0);
}</script>
Thanks in advance.