title: Setting focus for new tab on an tab browser
body: <p>I use the code below to open a new browser. </p>
  
  <pre><code>    var winHndle = window.open(url,'myWindow');
      winHndle.focus();
  </code></pre>
  
  <p>I don't mind if user settings come into play and it opens in a new window or tab.</p>
  
  <p><strong>My issue is I want the focus to change if the window/tab already exists. I can see the handle works fine - it refreshes, but focus doesn't change to that tab.</strong></p>
  
  <p>I keep seeing posts saying use <code>focus()</code>, but it just doesn't work.</p>
  
  <p>Without mucking around with user settings only IE and safari seem to open in a new window with this code. I just download and installed most recent versions of firefox, opera, safari and chrome - already had IE 8. So for most browsers my focus code is useless :-(</p>
  
  <p>FYI...I use "myWindow" so the next time I open the window it opens/refreshes the same instance if it's still there.</p>