Step:- Use following script in Head Section
<script type = "text/javascript" >
function disableBackButton()
{
window.history.forward();
}
setTimeout("disableBackButton()", 0);
</script>
<script type = "text/javascript" >
function disableBackButton()
{
window.history.forward();
}
setTimeout("disableBackButton()", 0);
</script>
Step 2:- Now you can use it on the in website .
just use this code as below in <body> tag
<body onload="disableBackButton()">
1 comments:
it works
Post a Comment