title: jquery re-attach div on pop up window close
body: <p>I'm using  jQuery to open a popup window which works great but I've also have it that the #content div detaches from "parent" page ...</p>
  
  <pre><code>$('.newWindow').click(function(ev){
  
  window.open('popout.html','pop out','width=400,height=345');
  ev.preventDefault();
  $('#content').detach();
  return false;
  
  });
  </code></pre>
  
  <p>link used:</p>
  
  <pre><code>&lt;a href="popout.html" rel="0" class="newWindow"&gt;Pop Out Window&lt;/a&gt;
  </code></pre>
  
  <p>How can I "re-attach" that div when pop up window is closed?</p>
  
  <p>I've tried many of the answers I found here on SO but none seem to work.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>It seems my browser cached the popup window as when I viewed the source (via right click view source) I noticed any changes I made IE the new  JS code was not there so closed browser and reopened and hey presto code edits where there...</p>
  
  <p>have temporarily gone for:</p>
  
  <pre><code>window.onunload = function(){
    window.opener.location.reload();
  };
  </code></pre>
  
  <p>which refreshes the parent page on child close but would still prefer a reattach approach.</p>