Die Funktionalität dieser Website ist durch Wartungsarbeiten eingeschränkt, die Ihr Erlebnis verbessern sollen. Wenn ein Artikel Ihr Problem nicht löst und Sie eine Frage stellen möchten, können Sie unsere Gemeinschaft über @FirefoxSupport auf Twitter, /r/firefox oder Reddit fragen.

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

java script code for Detecting browser window closing event in Firefox -

  • 2 Antworten
  • 12 haben dieses Problem
  • 11 Aufrufe
  • Letzte Antwort von jagadeesanc

more options

java script code for Detecting browser window closing event, in Firefox, when user closing the firefox window.

if any body knows the solution please let me know.

java script code for Detecting browser window closing event, in Firefox, when user closing the firefox window. if any body knows the solution please let me know.

Alle Antworten (2)

more options

<body onbeforeunload="ConfirmClose()" onunload="HandleOnClose()">

where ConfirmClose() asks you if you really want to close, and HandleOnClose() does something as you close the tab.

more options

Thanks for the instant replay. But this solution will not help me. because when we click on each link it will call the ConfirmClose() function. it should not for me. and i am using master page. and it contains so many links. when we close the home page then only i need to find the close event.