Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3787474
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:50:49+00:00 2026-05-19T11:50:49+00:00

A little bit ago I asked this question about if a child can get

  • 0

A little bit ago I asked this question about if a child can get information on its parent. But now I realize that I have a followup question that belongs on its own, rather than in comments: Can Javascript find out if any window is open?

I have a window A which can either be called from window B or window C. However, when I close A, I want certain things in the onUnload only to happen if window C is closed. Now, A may not have been opened by C, so I can’t rely on window.opener. Is there any way I can find out information on arbitrary windows? I thought about checking window.opener.location but that still requires that C have been the opener, which it may not have been. The names of all the windows are known, so if I could search by those, I’d be golden.

(as for the why: A is a chat console, B is the main menu, C is the queue monitor. When someone is in the queue monitor, they’re marked as available for chat. But to actually chat, they have to load up the chat console to do so. Normally, when you close the chat console, an onUnload tries to mark you unavailable, but I don’t want to that to happen if the queue monitor is still open.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:50:49+00:00Added an answer on May 19, 2026 at 11:50 am

    The only way to be able to do this is if the parent window that launched the child windows remains open throughout the process. Windows with similar “ancestry” can use the common parent as a relay point. Code on the common parent would probably be required (or at least desirable) to assist.

    I suppose it’s possible for the common parent to hand each child an object with references to other child windows; I can’t imagine any reason for that to fail. Of course, that won’t help if one child is launched from one incarnation of the main window, and another launched from a separate one. In that case, even though the windows share a domain, they really have no way of finding each other.

    Anyway if you have a reference to a window, the .closed property will tell you if it’s closed or not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I only read a little bit about this topic, but it seems that the
This might be a little bit odd question, but Im trying to figure out
I've read the Apple doc about Preferences but this is still a little bit
I asked a question similar to this one a couple of weeks ago, but
I have little bit longer question for you - but hope answer will be
My question might seem a little amateur but I can't find an answer online
This little bit of syntax has been a bit of a confusion for me
I am a little bit puzzled as to how I can optimize my program
I am little bit confuse about log4j in grails. I need to log info
I am a little bit confused about 2 things. Firstly when I create an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.