homepage Welcome to WebmasterWorld Guest from 23.20.63.27
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Firefox & Window.Open
Meat Curtian




msg:3958480
 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?

 

DrDoc




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

What element is the event attached to?

Meat Curtian




msg:3958853
 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.

Thanks...

rocknbil




msg:3958904
 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