This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Child Window closing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Child Window closing" Watch "Child Window closing" New topic

Child Window closing

Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
If I used following to close child window, it will give alert message like are sure want to close window? before closing window in IE only(NOT IN NETSCAPE).
If I used
self.close() it will ask alert message in Netscape Close Child_window? (NOT IN IE)
I don't want to see any alert message in any browser when I close child window. Is there any way I can achieve this?
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
I am not getting it - probably it depends on some security settings.
What you could try, is to have in you parent window a function, that closes popup, and than call it frop popup, when you need it.
So if you opend popup with
you will have
function closeWnd(){ wnd.close();}
and from your popup opener.closeWnd.
You could also try to have in parent window function closeChild(wnd){
at this case you don't need to hold a pointer to an open window. In a popup you will say
Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
I agree. Here's the link:
subject: Child Window closing
It's not a secret anymore!