Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

jquery window.unload does not trigger now in ver 18


the event is no longer triggered when the browser window is close. previous versions do.

Additional System Details

Installed Plug-ins

  • Google Update
  • Logitech Harmony Remote Plugin
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • 5.1.10411.0
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.3
  • iTunes Detector Plug-in
  • Shockwave Flash 10.3 r183
  • RealJukebox Netscape Plugin
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • BlackBerry WebSL Browser Plug-In
  • wpidetector
  • IE Tab Plug-in for Mozilla/Firefox
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • ActiveTouch General Plugin Container Version 103
  • Office Plugin for Netscape Navigator


  • User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20110319 Firefox/3.6.16 (.NET CLR 3.5.30729) FBSMTWB

More Information

  • Top 10 Contributor
  • Moderator
10742 solutions 96657 answers

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.

There are other things that need your attention.

You have a corrupted user agent that identifies you as Firefox/3.6.16

  • Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20110319 Firefox/3.6.16 (.NET CLR 3.5.30729) FBSMTWB


Question owner

I am using a portable version of firefox, we have another development machine that has the full 18 version that we detected the $(window).unload event doesnt trigger. I uninstalled the 18 version and replaced with a portable version 16 and now the jquery event is fired.

Question owner

I will visit the mozillazine site you suggested.

Question owner

went to mozilline, there are two possible issues: the unload or the post.

$(window).unload(function(){ $.post('/ffc/myjqpost.pl') ;}) ;

Question owner

resorted to native javascript via html: <body onunload="function here" > ; it Worked!!