Tuesday, September 11, 2012

Some time we need to restrict user from navigating using Back and Forward buttons provided by browsers for some security or any other reason. If anyone is in same situation then here is a simple solution...
Just put the following piece of java-script directly into the starting of page's body section

<script type="Text/JavaScript">
        javascript:window.history.forward(1);
</script>

0 comments:

Post a Comment