Search content within the blog

Tuesday, December 2, 2008

Disabling back button in browsers(IE,Mozilla,Safari,Opera)

Just copy-paste the following code in the head section

<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>

3 comments: