aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Disabling Refresh 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 "Disabling Refresh " Watch "Disabling Refresh " New topic
Author

Disabling Refresh

sridhar lakka
Ranch Hand

Joined: Jan 02, 2007
Posts: 109
Hi All,
Thanks in advance.
How to disable browsers frefresh i know how to disable Alt+F5.
Please i need example code.
Thanks a lot
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
Im not sure you can do it as there are more than one ways to refresh a page..
by the browser refresh button [which Im doubtful if one can disable], by F5 on keyboard.

I think you can add handling for F5 key press but not for the disabling of browser refresh button.

Regards,
Tina


Alongwith being a good coder, try to be a good professional as well!
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by Tina Desai:

I think you can add handling for F5 key press but not for the disabling of browser refresh button.


agree with these words..
or another issue is right-click to refresh... on browser.

Why would you want to take away the refresh button?
Provide some details so we can help you to try to solve your problem in different way..


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You cannot disable refresh. If you are having double submissions, that needs to be dealt with on the server.


Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61224
    
  66

What a rude thing to want to do!


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
sridhar lakka
Ranch Hand

Joined: Jan 02, 2007
Posts: 109
thanks for repsponse,and one thing i am not doing rude,if you feel this one is rude what ever new development we are doing is Rude.
Any way thanks for your comment.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
What are you doing that you need to disable the refresh button?

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61224
    
  66

We see posts all the time in this forum with people asking questions like: how do I disable the refresh button? prevent the user from closing the window? change the browser settings? run programs on the user's computer?

Such actions are outside the domain of the window that the browser gives you, and attempting to subvert the user's computer and settings in these manners is generally considered rude.

Sort of like going into your neighbor's house and re-arranging the furniture.
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
Originally posted by Saif uddin:

Provide some details so we can help you to try to solve your problem in different way..


Yes, Shridhar, tell us what you want to achieve..

Regards,
Tina
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disabling Refresh