surendra
surendra

Reputation: 21

How can I prevent reload when I hit F5

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, but 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.

Upvotes: 2

Views: 591

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168835

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

Upvotes: 2

Related Questions