Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

window.onbeforeunload is not working in firefox latest version

  • 2 відповіді
  • 33 мають цю проблему
  • 9 переглядів
  • Остання відповідь від BalajiPolisetty7

more options

Javascript window.onbeforeunload event has a function and at the end we have alert . in Previous version of firefox we used to get alert after executing that function . But in the latest version of firefox we are not getting . Can you please provide in which this will be resolved. or please provide the work around .. thanks alot.

Javascript window.onbeforeunload event has a function and at the end we have alert . in Previous version of firefox we used to get alert after executing that function . But in the latest version of firefox we are not getting . Can you please provide in which this will be resolved. or please provide the work around .. thanks alot.

Усі відповіді (2)

more options

hello BalajiPolisetty7, it is the intended behaviour that alert() isn't allowed in onbeforeunload. many rogue sites use that to trap and scam users when they want to leave a page...

more options

Thanks for your timely reply . i need to call few java script functions on close of browser tab / window just want to know what is the in built javascript/ jquery functions that i need to use because older version of firefox used to support the window.onbeforeunload so last statement of the event we placed alert so everything got executed and alert box will come . Now with the current version without executing all the statements in the event browser is getting closed.

Please do the needful thanks alot