I have been searching for a while now on how to do this, and most say it can't be done.... There is always a way around that statement.
Once a window is open, using
Another window may not be allowed opened until that one is closed.
I've been attempting to send a var back to the parent when the child is closed using the onunload method, but with no luck. If I could just do that, then it could solve the problem.
But if anyone else has another idea, it's welcome.
And btw, developing in .Net and have a temporary fix working using an application var, but that has a security hole in it.
Java and JavaScript are two utterly and completely different and unrelated languages. The similar names are the invention of a marketing team. Your question is about JavaScript. Most of this site is about Java, not JavaScript -- but we do have one forum entitled "HTML and JavaScript". I'll move your question there for you.
As I said before whereever you posted this question before you do not need to set a variable since you can check the window object.
The following code checks to see if the window is open. If it is open, an alert message is displayed in the pop up. If it is not open, than a new window is opened up.
you do not need to set the varaiable winPop, the browser does it. The variable winPop holds a window object that holds the state of the browser window.
The thing is are you posting back the page to the server to open the new windows? If that is the case, then you are going to have issues since you loose the window object. There is no way to hold that.