Wednesday, October 5, 2011

Disable browser back button

I got a schenario where after log out, I do not want any one to come out to my page. You simply need to write the code below the <head> tag
<script type="text/javascript" language="javascript">
            javascript:window.history.forward(1);
    </script>

No comments:

Post a Comment