title: keep references to window.open windows after parent refresh
body: <p>I open some windows using window.open() so I can communicate between parents/ children using JavaScript.</p>
  
  <p>I have this scenario:</p>
  
  <p>Open a window using window.open(), and push it to an array (can have multiple children windows)
  Reload/ refresh the parent window.
  The parent window has lost its connection to the child windows, previously stored in an array.
  The child windows can still call window.opener, though...</p>
  
  <p>I need a way for the parent window to recognise its children again after reload, so it can pass variables/ call functions etc.</p>
  
  <p>how can I do this?</p>
  
  <p>current code looks like:</p>
  
  <pre><code>var opened_windows = new Array;
  
  $(document).ready(function(){
      $('a[data-open-js]').click(function(){
          var link = $(this).attr('href');
          opened_windows.push(window.open(link));
          return false;
      });
  });
  
  
  // call functions from the opened windows when something happens in the parent
  function update_all_children(jobref, new_num_saved_jobs){
      for(var i = 0; i &lt; opened_windows.length; i++){
          opened_windows[i].update_saved_btns(jobref, new_num_saved_jobs);
      }
  }
  </code></pre>