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 3452590
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:16:33+00:00 2026-05-18T09:16:33+00:00

Generally my question is how to find in array of windows which one was

  • 0

Generally my question is how to find in array of windows which one was closed?

I open lots of popUp windows and make them stay on top, but I have a problem with finding if window was closed already. So I do something like:

var exNames = []; var wins = []; var w=0; var h=0; var maxHeight = 0;

openWin = function(name, width, height){
 var myJoin = "|" + exNames.join("|") + "|";
if(myJoin.indexOf('|'+name+'|') == -1){
 
    if(height > maxHeight){ maxHeight = height + 5;}
    if(screen.width - w - width < 0){w=0;  h=h+maxHeight; top=h+1; maxHeight=0; if(screen.height - h - height < 0){h=0;} } 
    
    left=w+1;
    tops=h+1;
    w=w+width+7;
    
    var file='./'+name+'.flv?action=read';
    var settings='width='+width+', height='+height+', left='+left+', top='+tops+', screenX='+left+', screenY='+tops;
     wins.push(window.open(file, name, settings));
         exNames.push(name);


}          for (var i = 0; i < wins.length; ++i)
            wins[i].focus();
}

And I need to know when someone sends me name of a window which was already opened and closed to restore that window. How to do such thing?

  • 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-18T09:16:33+00:00Added an answer on May 18, 2026 at 9:16 am

    how about using the window.closed property http://www.devguru.com/technologies/ecmascript/quickref/win_closed.html

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

Sidebar

Related Questions

This is more of an open question rather than looking for one specific answer.
This question is generally phrased as How to share cookies across multiple subdomains and
My Question: Performance tests are generally done after an application is integrated with various
(This question specifically in C#, but applies generally to .NET) I have a largish
I'm new to c sharp and programming generally. I have a quick question -
Here is the question: There are 5 sorted list A,B,C,D,E, which has the same
This question has been asked, in one form or another, a dozen times here,
One proviso: The syntax element at the heart of my Question is in the
So, this is a common interview question. There's already a topic up, which I
I have a question which I see from googling has been discussed at length..

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.