X
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

Firefox 4 not working with Javascript. Cannot close window. Any ideas?

Posted

I first noticed the problem in my web site, but now in other sites. When I open a window and try to press the button to close it, it doesn't work. Code is: javascript:window.close(); It worked in previous version of Firefox but not since I loaded 4.0. I tried it in Explorer and it works fine.

Chosen solution

It sounds like they need to update it to work with FF4.

There are some other extensions in the same flavour here which might provide an alternative: Google Toolbars

Oh, and can you click the "Helpful" button so that this post is flagged as solved please.

Read this answer in context 4

Additional System Details

Sites Affected

http://dreamworkkitchens.com

Installed Plug-ins

  • LogMeIn, Inc. Remote Access Components
  • Office Plugin for Netscape Navigator
  • np-mswmp
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Adobe PDF Plug-In For Firefox and Netscape "9.4.3"
  • Shockwave Flash 10.2 r152
  • Adobe Shockwave for Director Netscape plug-in, version 11.5.9.615
  • iTunes Detector Plug-in
  • GEPlugin
  • Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
  • Windows Activation Technologies Plugin for Mozilla
  • 4.0.60129.0
  • NPWLPG
  • Motive Plugin for Mozilla Browsers
  • Google Update

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0

More Information

tulikettu 0 solutions 1 answers

Hi, I've noticed the same issue . But for me this happens if I use Print Preview first. JavaScript works just fine before using Print Preview. But the most interesting thing is that when using javascript:window.close(); after Print Preview all that happens is that the character set of the page changes. On the other hand the character set works properly only after Print Preview. Interesting...

Xircal 334 solutions 3835 answers

See Advanced Javascript Settings

If you have QuickJS installed, make sure it doesn't show a split icon if you encounter the problem.

Modified by Xircal

Question owner

Thanks. But I don't have that installed.

Xircal 334 solutions 3835 answers

Try running Firefox in Troubleshoot Firefox issues using Safe Mode If it works correctly in that configuration, then one of your add-ons is the culprit.

Question owner

You're a genius! I started FF4 in safe mode and it worked without a problem. I restarted and one by one disabled my add ons. It seems to be Google Toolbar for Firefox. When that is disabled the javascript works fine. Should I try to find a newer Google Toolbar for FF4? Thanks for your help.

Xircal 334 solutions 3835 answers

Chosen Solution

It sounds like they need to update it to work with FF4.

There are some other extensions in the same flavour here which might provide an alternative: Google Toolbars

Oh, and can you click the "Helpful" button so that this post is flagged as solved please.

Dobos 0 solutions 1 answers

Thanks to Xircal for the tip, I got mine working again. I found out through trial and error that the addon that was giving me problems was the flashgot addon, which, after reflection, I'm happy to give up to get the close.window to work!

Xircal 334 solutions 3835 answers

That's interesting. I'll make a note of that.

You could also consider posting your discovery on the Add-ons forums / AMO Feedback if you have time: https://forums.mozilla.org/addons/

Thanks for letting us know in any event.