Disable Back Button of Browser

Put Following script in Masterpage. Through that u can prevent it for the whole website

<script type=”text/javascript”>
      window.location.hash = “no-back-button”;
        window.location.hash = “Again-No-back-button”; //again because google chrome don’t insert first hash into history
        window.onhashchange = function () { window.location.hash = “No-Back “; }
</script>

When you put like that In Browser Url window U can see

http://localhost:62951/Home.aspx#No-Back

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s