Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Learn More

Javascript exit popup in firefox

  • 1 odpowiedź
  • 1 osoba ma ten problem
  • 4 wyświetlenia
  • Ostatnia odpowiedź od cor-el

more options

Hi, I am trying to use a javascript exit alert box, i tested it in all other browsers and it is not showing the exit popup text in firefox. Do you know how it can show the text in firefox. here is the code


<script type="text/javascript">

    window.onbeforeunload = function() { return "This is my text that should show in firefox"; }

</script>

Hi, I am trying to use a javascript exit alert box, i tested it in all other browsers and it is not showing the exit popup text in firefox. Do you know how it can show the text in firefox. here is the code <script type="text/javascript"> window.onbeforeunload = function() { return "This is my text that should show in firefox"; } </script>

Wszystkie odpowiedzi (1)

more options

Firefox has a dom.disable_beforeunload pref to disable this feature, so you can check this pref on the about:config page.

See also:

Since 25 May 2011, the HTML5 specification states that calls to window.alert(), window.confirm(), and window.prompt() methods may be ignored during this event. See the HTML5 specification for more details.