vijay

welcome Netizen

Share Your Knowledge.It is a way to achieve immortality

Monday, February 21, 2011

How to Disable Back Button in asp.net Web page?


hi..
i knew many of them could tried to disable the option of Back Button,Because if you would not disable the
user can easily go back to previous page ,so avoid this situation we can use javascript to diable the option
You can add this code in that header tag..Follow this steps


<head runat="server">
    <title>Untitled Page</title>
    <script language="javascript " type ="text/javascript" >
    window .history.forward();
       
    </script>
</head>

i hope this helpful to u .....

0 comments:

Post a Comment