File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Disable browser refresh button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Disable browser refresh button" Watch "Disable browser refresh button" New topic

Disable browser refresh button

Deepshan Shetty
Ranch Hand

Joined: May 28, 2012
Posts: 30

Can anyone help me with code to disable browser(IE and Mozilla) REFRESH button in java script.

S V Shetty
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
impossible to do it.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852


[Asking smart questions] [About Bear] [Books by Bear]
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

Sorry to pile on to you like this, Deepshan, but just so there's no doubt in your mind as to how we feel about doing things like that: DON'T EVEN THINK ABOUT DOING IT!

Why on earth would you do that? How would you like if you were watching TV, then flip to a channel that for some diabolically obscene reason decided it didn't want you to be able to change the channel on your TV anymore? And what if that channel's purveyor of evil actually had the to technology to do so! I'm thinking you wouldn't like it very much, would you? You would probably curse that lousy, no-good, #@$*& channel to high heaven, right? Well, that's what users of your app would do if you succeeded in disabling their browser's refresh button.

Junilu - [How to Ask Questions] [How to Answer Questions]
I agree. Here's the link:
subject: Disable browser refresh button
It's not a secret anymore!