title: How to set focus to child and opener windows when tabbed
body: <p>How do I set focus back to the parent window when in another browser tab? I've tried: </p>
  
  <pre><code>window.opener.focus();
  </code></pre>
  
  <p>to no avail.  It only seems to work when the windows are not docked.</p>
  
  <p>I need this to work in Chrome, IE9/10, Firefox, and Safari.  </p>
  
  <p>Internet Explorer also seems to have issues setting focus to a child window. E.g. when using:</p>
  
  <pre><code>var windowRef = window.open(url);
  </code></pre>
  
  <p>then later from the same tab:</p>
  
  <pre><code>windowRef.focus(); // ok in Chrome, doesn't seem to work in IE...
  </code></pre>