Disable Browser Back Button Functionality using JavaScript


Friday, August 28, 2009

Hi,Please find the code to disable browser back button,it can be helpfull during
online examination.





<script type = "text/javascript" >
function preventBack(){window.history.forward();}
setTimeout("preventBack()", 0);
window.onunload=function(){null};
</script>


Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Asp.Net Developer
Indianic Infotech Ltd (India)
rajesh@indianic.com

No comments :