Fungovanie tejto stránky je z dôvodu údržby dočasne obmedzené. Ak článok nevyrieši váš problém a chcete položiť otázku, napíšte našej komunite podpory na Twitter @FirefoxSupport alebo Reddit /r/firefox.

Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Ďalšie informácie

Is there any close event of firefox browser ?

  • 1 odpoveď
  • 1 má tento problém
  • 3 zobrazenia
  • Posledná odpoveď od user293

more options

I want to capture the event that fire when I close the browser.

Is there any way to capture event using JavaScript/JQuery?

Thanks

I want to capture the event that fire when I close the browser. Is there any way to capture event using JavaScript/JQuery? Thanks

Upravil(a) ajeetyadav89 dňa

Všetky odpovede (1)

more options

I guess I'm kind of confused. Are you developing a webpage or a firefox add-on (although the jquery part makes me think you are making a webpage)?

There isn't any way to detect when the application quits, since all javascript stops running once the webpage is closed. However, you can detect when the webpage is about to be left, either from the application closing, the tab being closed, or the user going to a different page using the onbeforeunload event.

(also, this works in all browsers, not just firefox).