Disable browser's back button
In this article, we will how to prevent a user from
navigating to the previous page using the back button of the browser or the back option in
the context menu in ASP.Net. So we do disable the browser back button.
Source Code:-
<script type="text/javascript">
function
preventBack() { window.history.forward(); }
setTimeout("preventBack()",
0);
window.onunload = function ()
{ null };
</script>
Disable browser's back button
Reviewed by NEERAJ SRIVASTAVA
on
1:33:00 PM
Rating:
No comments: