homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Firefox & Window.Open
Meat Curtian

 10:57 pm on Jul 23, 2009 (gmt 0)

Hi all,
So I open a window using Window.Open, and close it using onclick="window.close()". This works fine with IE7 & IE8, but I'm having no luck getting this to work with FireFox 3.0.

Any simple solutions?



 2:54 am on Jul 24, 2009 (gmt 0)

What element is the event attached to?

Meat Curtian

 12:46 pm on Jul 24, 2009 (gmt 0)

In the child window I'm using onclick="window.close()" in an attempt to close this popup. There seems to be many fixes for FireFox, yet I've not found one that works. The onclick="window.close()" does work fine with IE, but I have about 15% of traffic using Firefox.



 1:57 pm on Jul 24, 2009 (gmt 0)

This should work, as DrDoc asks, what's it attached to? As in, button element:

<form><input type="button" onClick="window.close();" value="Close Window"></form>

You might also check FF's Error Console.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved