• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disabling Refresh

 
sridhar lakka
Ranch Hand
Posts: 109
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 365
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What a rude thing to want to do!
 
sridhar lakka
Ranch Hand
Posts: 109
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you doing that you need to disable the refresh button?

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 365
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic