Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-22-2012, 06:59 PM   PM User | #1
docco
New Coder

 
Join Date: Aug 2012
Posts: 67
Thanks: 18
Thanked 0 Times in 0 Posts
docco is an unknown quantity at this point
How to close a sister window?

In parent window, I create 2 child-windows, named oldSister window and youngSister window.
How can I close the oldSister window from the youngSister window?
Can anyone help?
docco is offline   Reply With Quote
Old 09-22-2012, 07:18 PM   PM User | #2
Logic Ali
Regular Coder

 
Logic Ali's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 959
Thanks: 0
Thanked 198 Times in 193 Posts
Logic Ali will become famous soon enoughLogic Ali will become famous soon enough
Quote:
Originally Posted by docco View Post
In parent window, I create 2 child-windows, named oldSister window and youngSister window.
How can I close the oldSister window from the youngSister window?
Can anyone help?
Code:
var oldSister;

..........

oldSister = window.open(........); /* probably an onclick handler */
In other popup:

opener.oldSister.close();
Logic Ali is offline   Reply With Quote
Old 09-22-2012, 07:21 PM   PM User | #3
docco
New Coder

 
Join Date: Aug 2012
Posts: 67
Thanks: 18
Thanked 0 Times in 0 Posts
docco is an unknown quantity at this point
Ok, I have done!
MOD clear this topic Please
docco is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:50 AM.


Advertisement
Log in to turn off these ads.