Disable Back Button in Login Page in Asp.Net

<script type="text/javascript">
        window.history.forward();
        function noBack() { window.history.forward(); }
</script>
   





..................................................................................................
 <script type="text/javascript">
        function noBack() {
            window.history.forward()
        }
        noBack();
        window.onload = noBack;
        window.onpageshow = function(evt) { if (evt.persisted) noBack() }
        window.onunload = function() { void (0) }
    </script>


 ...................................................................
   <script type = "text/javascript" >

        function preventBack() { window.history.forward(); }

        setTimeout("preventBack()", 0);

        window.onunload = function() { null };

</script>

0 comments:

Post a Comment