开发者

How can I prevent reload when I hit F5

开发者 https://www.devze.com 2023-02-18 22:44 出处:网络
I don\'t want to reload my Java applet when I press F5, but I want my application to use F5 key. I want the user to use F5 for his use - I don\'t want to disable F5 key in my applet, b开发者_JAVA技巧

I don't want to reload my Java applet when I press F5, but I want my application to use F5 key.

I want the user to use F5 for his use - I don't want to disable F5 key in my applet, b开发者_JAVA技巧ut when he presses F5, the Applet should not reload.

I found that when ever we are refreshing, the Applet stop method is called. but it should not happen.


Use another key combination for your applet (e.g. Ctrl-F5). The user needs F5 to refresh the web page.

0

精彩评论

暂无评论...
验证码 换一张
取 消