• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Disabling Refresh

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67645
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What a rude thing to want to do!
 
sridhar lakka
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What are you doing that you need to disable the refresh button?

Eric
 
Bear Bibeault
Sheriff
Posts: 67645
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic