Forum Moderators: open
I've posted on this problem before and got some help on the matter and I went away to try the suggestions, but it still doesnt work. Here's the thing...
I've got a image onto which I attach a the close(); method to close the window.
<a href="javascript:window.close();" ><img src="images/close.gif" width="21" height="20" border="0" alt="Close Window"/></a>
the problme is no matter how I arrange things it just wont close the window in mozilla.
I've tried
window.close();
this.window.close();
self.close();
Both in the anchor and as a onclick handler on the image itself now all of these work in netscape 4+ and IE 4+, just not in mozilla.
The annoying thing is that its works else where in the site in a pop up window. Its really got me stumped!
has any one got any suggestions?
korcus: I think I know where you might be going with your question... It is in the first page you come to. I guess you might wonder why Im bothering when the user can just close the page in the normal way - it just that its possible to navigate to the main page from fullscreen mode ater in in the site :. no close button. I know I could work around this, but I'm stubborn. :)
so was I right is that what you gonna say?
Why the different browsers show different behaviours is a mistery to me, though. Normal would be as IE in non full-screen mode.