Menu
Hi,
I have a webpage (asp) that needs to capture F5 event and ignore it. As you may understand this is necessary to avoid refreshing the page and also unnecessary send a stream back to the server.
I know document.captureEvents(Event.KEYPRESS) can be used to divert all keypress events to a user-defined function and then checking for F5 key. Is there a better or elegant way to handle this.