Tuesday, May 28, 2013

How to prevent back from javascript?


only code  put in the body...

<script type = "text/javascript" >
   function preventBack(){window.history.forward();}
    setTimeout("preventBack()", 0);
    window.onunload=function(){null};
</script>

No comments:

Post a Comment