Results 1 to 2 of 2

Thread: Close child window with parent window button

  1. #1
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Close child window with parent window button

    1. I want to close all child window with parent window. First i want to detect whether any child window open if open then it should be close after click close button on parent window.Please help.

    2. How to detect open child window and how to close it with parent window.Please help.
    Last edited by jscheuer1; 11-26-2010 at 11:05 AM. Reason: virtually the same question

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I'm not sure if there is a way to do this, but one easy approach would be to track new windows when you open them. Add them to an array, then when you click the 'close' button try to close each of those.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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