0

I'm trying to block F5 and CTRL-R in the Internet Explorer while displaying a Flash-Application. It works by using the Javascript onkeydown-event (http://msdn.microsoft.com/en-us/library/ie/ms536938(v=vs.85).aspx). But at the moment I click somewhere in the Flash application it won't work anymore.

Is there any chance to block/disable those keys even in the Flash context, maybe without using an external library?

Unfortunately the onbeforeunload-event (http://msdn.microsoft.com/en-us/library/ie/ms536907(v=vs.85).aspx) doesn't fit for me because I have to reload the page by code.

Thanks in advance.

  • Could you add the URL of the site you’re implementing this on? Just so I know to *never visit it*. – Paul D. Waite Apr 23 '13 at 09:46
  • See here: http://stackoverflow.com/questions/2482059/disable-f5-and-browser-refresh-using-javascript – David Apr 23 '13 at 19:03
  • Thanks for the link, but I tried these solutions yet. Unfortunately they are not working for me. Once I click into the running Flash application and press F5 after that, the page will refresh. – Marc Relec Apr 24 '13 at 14:08

0 Answers0