title: Cross window js interaction between a popup and another window of the same domain
body: <p>I'm trying to open a popup from window <code>a</code> at example.com. then close window <code>a</code> and open another window <code>b</code> at the same domain (example.com). Is it possible to access the DOM of window <code>a</code> from window <code>b</code> and how?</p>
  
  <p>The popup is opened from window <code>a</code> by</p>
  
  <pre><code>window.open('http://example.com/blah', 'somename', settings..), 
  </code></pre>
  
  <p>Executing the same from window <code>b</code> with a different url (shown below) works</p>
  
  <pre><code>window.open("http://example.com/blah2", "somename" ...) 
  </code></pre>
  
  <p>This seems to suggest windows are accessed by window name. But I could not find any way to access to DOM of the popup with or without the window's name. How would I do this?</p>