Welcome to WebmasterWorld Guest from 54.163.35.238

Forum Moderators: open

Message Too Old, No Replies

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?

DrDoc

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

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

Thanks...

rocknbil

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

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month