How to disable Browser Back button through jQuery?

 Posted by vishalneeraj-24503 on 7/2/2014 | Category: jQuery Interview questions | Views: 14490 | Points: 40
Answer:

Write below line of code:-
<script type="text/javascript" language="javascript">

$(document).ready(function() {
window.history.forward(1);
//OR
window.history.forward(-1);
});
</script>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Chakravarthi on: 7/9/2014 | Points: 10
Good one

Thanks

Login to post response