GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes javascript:window.close() does not work with NN7.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript:window.close() does not work with NN7.1" Watch "javascript:window.close() does not work with NN7.1" New topic
Author

javascript:window.close() does not work with NN7.1

Adam Tao
Greenhorn

Joined: May 15, 2003
Posts: 20
Hi there,
javascript:window.close() can work with all versions of IE and NN except Netscape 7.1. It is very strange that Netscape 7.0 supports javascript:window.close() while Netscape 7.1 does not support javascript:window.close(). Anyone have faced this problem and any idea to fix this problem?
Thanks,
Adam


Adam <br /> <br />Sun Certified Enterprise Architect for J2EE<br />IBM Certified for e-business - Solution Designer<br />IBM Certified Advanced System Administrator - WebSphere Application Server V5.0<br />IBM Certified Solution Developer - XML and Related Technologies<br />IBM Enterprise Application Development with IBM WebSphere Studio, V5.0
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
that is weird....
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
This window that you are trying to close...was it opened up with JavaScript?
Adam Tao
Greenhorn

Joined: May 15, 2003
Posts: 20
Hi,
Here is a simple example:
You can use with href oronClick in your html pages
They work with NN7.0, but do not work with NN7.1.
If the window is opened by javasccript, the window will close without warning. Otherwise the window will close with warning.
Thanks,
Adam
[ February 19, 2004: Message edited by: Adam Ttj ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Netscape 7.1 has code that will not allow you to close the window without it being open with JavaScript.
Adam Tao
Greenhorn

Joined: May 15, 2003
Posts: 20
Hi Eric,
You are right.
Netscape 7.1 works in this way intentionally.
Thanks a lot!
Adam
 
GeeCON Prague 2014
 
subject: javascript:window.close() does not work with NN7.1