Welcome to WebmasterWorld Guest from 54.157.7.205

Forum Moderators: open

Message Too Old, No Replies

Firefox & Window.Open

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

Junior Member

joined:Sept 3, 2007
posts: 59
votes: 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 July 24, 2009 (gmt 0)

Senior Member

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

joined:Mar 15, 2002
posts:6807
votes: 0


What element is the event attached to?
12:46 pm on July 24, 2009 (gmt 0)

Junior Member

joined:Sept 3, 2007
posts: 59
votes: 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...

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

Senior Member

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

joined:Nov 28, 2004
posts:7999
votes: 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.