搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

The pop ups on my site no longer work for Firefox 32. How can I fix this?

  • 2 回覆
  • 1 有這個問題
  • 7 次檢視
  • 最近回覆由 cor-el

more options

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

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)

more options

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.
more options

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