The pop ups on my site no longer work for Firefox 32. How can I fix this?
The exit pops on my website AloeMarine.com seem to work on every other browser except for Firefox32. where the site now simply closes without me having a chance to give customers a free offer before they leave. What can I do to fix this so they appear again and we can make people happy again
所有回覆 (2)
hello simeoncryer, it is the now intended behaviour in firefox that alert() isn't allowed in onbeforeunload. many rogue sites use that to trap and scam users when they want to leave a page...
please refer to https://developer.mozilla.org/en-US/d.../window.onbeforeunload:
Since 25 May 2011, the HTML5 specification states that calls to window.showModalDialog(), window.alert(), window.confirm(), and window.prompt() methods may be ignored during this event.
You can also see that as an error in the Browser Console (Firefox/Tools > Web Developer).
- NS_ERROR_NOT_AVAILABLE:
Bug 391834 - Don't allow alert/confirm/prompt in onbeforeunload, onunload and onpagehide