This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Child Window closing

 
Angela D'souza
Ranch Hand
Posts: 469
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 413
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 469
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
Angela
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic