Welcome to WebmasterWorld Guest from 184.108.40.206 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Subscribe to WebmasterWorld
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.
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.