Sunday, August 26, 2012

Disable Back Button After Login







if your login page is this than






on your login page put the following java script


<SCRIPT type="text/javascript">
 window.history.forward();
 function noBack() { window.history.forward(); }
</SCRIPT>
</HEAD>
<BODY onload="noBack();" 
onpageshow="if (event.persisted) noBack();">
</BODY>

Example

No comments:

Post a Comment