Disable browser back button using javascript in ASP.NET(csharpdotnetfreak.blogspot.com)

submitted by amit.jainamit.jain(933) 2 years, 10 months ago

In this example i'm explaining how to disable browser's back button to avoid user going to previous page by clicking on back button of browser, for this we need to use javascript to prevent user navigating to previous page by hitting back button.

1 comment |category: |Views: 211

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by leedumondleedumond(2139) 2 years, 10 months ago 0

Geezus, seriously, are developers still doing this? What a waste of time. Very easy to defeat, and serves no real purpose anyway.

Here's an idea -- how about joining the 21st century with the rest of us, stop trying to hijack user's browsers, and designing your app so that it doesn't fall apart like a house of cards when someone hits the back button?

Reply

information Login or create an account to comment on this story