Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2012
    Posts
    121
    Thanks
    18
    Thanked 0 Times in 0 Posts

    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?

  • #2
    Senior Coder Logic Ali's Avatar
    Join Date
    Sep 2010
    Location
    London
    Posts
    1,028
    Thanks
    0
    Thanked 207 Times in 202 Posts
    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();

  • #3
    Regular Coder
    Join Date
    Aug 2012
    Posts
    121
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Ok, I have done!
    MOD clear this topic Please


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •