View Full Version : how to handle reload button event or block it

07-27-2011, 07:46 AM

I am generating a report on submit click.Due to size of data query execution takes some time to display result, in mean time if user press reload button on browser toolbar consequently same query request going to database and the performance become slow down. I am able to restrict user from clicking F5 and ctrl+R button but not reload button. I there any way to handle event on reload button? or can we disable reload button on submit?

Thanks in advance!

Philip M
07-27-2011, 08:44 AM
No, it is not possible to disable the toolbar refresh button.

Suggest you display a message saying "Please do NOT attempt to refresh this page" for an appropriate time. Ignoring duplicate submissions on the server is the correct thing to do.

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.