aspose file tools*
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Child Window closing" Watch "Child Window closing" New topic
Author

Child Window closing

Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
Hi,
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).
top.close();
window.self.close();
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?
Thanks,
Angela
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
wnd=open("url","name","props");
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){
wnd.close();
}
at this case you don't need to hold a pointer to an open window. In a popup you will say
opener.closeChild(self);
Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
Thanks
Angela
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Child Window closing
 
Similar Threads
Help Needed In Events Recognition
RANDALL help me please ..closing a frame window
Closing of Netscape browser??
Problem Closing a popup in FireFox
Developing Web Application without IE toolbars