| 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
|
 |
 |
|
|
subject: Child Window closing
|
|
|