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

"javascript:window.close()" script doesnt work in firefox 3.6 and above It works in IE8 and used to work in earlier Firefox


I am using <a href="javascript:window.close()"> to close the window at the completion of an online survey. I works OK in IE and used to work in Firefox. Now the script does not do anything in 3.6 and above . In IE it closes a window through a GUI

Additional System Details

Sites Affected


Installed Plug-ins

  • Zeon PDF Plugin For Mozilla
  • Google Update
  • BrowserPlus -- Improve your browser! -- http://browserplus.yahoo.com/
  • Shockwave Flash 10.1 r53
  • iTunes Detector Plug-in
  • Garmin Communicator Plug-In
  • GEPlugin
  • Yahoo Application State Plugin version
  • 4.0.50524.0
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • RealJukebox Netscape Plugin
  • 1.4
  • Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
  • Adobe PDF Plug-In For Firefox and Netscape
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.


  • User Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b4) Gecko/20100818 desktopsmiley_2_2_7417774631329091_239_23 DS_gamingharbor Firefox/4.0b4 ( .NET CLR 3.5.30729; .NET4.0C)

More Information

the page is at the end of this site

  • Top 10 Contributor
  • Moderator
10738 solutions 96600 answers

In Firefox you can only close a window that was previously opened via JavaScript

See :