Using Javascript get all the windows that are opened for a domain
<p>I want to know a way in javascript by which i can get all open window for a domain.</p>

<p>I am aware of the following way -</p>

<p>Suppose i am on wind0 and there i have three links and onclick i have written following code - </p>

<pre><code>var win1=window.open('page1','name1');//link1 onclick
var win2=window.open('page2','name2');//link2 onclick
var win3=window.open('page3','name3');//link3 onclick
</code></pre>

<p>Above code will open three different windows. I can use win1, win2, win3 objs and save them in an array and use it latter, but suppose my page on wind0 is refreshed and content of the array is lost.</p>

<p>Now I am unable to find out how many windows are opened for that domain.</p>

<p>How can i get all the windows opened for a domain?</p>

<p>Thanks. </p>
