title: Giving a child window focus in IE8
body: <p>I'm trying to launch a popup window from a Javascript function and ensure it has focus using the following call:</p>
  
  <p><code>window.open(popupUrl, popupName, "...").focus();</code></p>
  
  <p>It works in every other browser, but IE8 leaves the new window in the background with the flashing orange taskbar notification. Apparently this is a feature of IE8:</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/ms536425(VS.85).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms536425(VS.85).aspx</a></p>
  
  <p>It says that I should be able to focus the window by making a focus() call originating from the new page, but that doesn't seem to work either. I've tried inserting window.focus() in script tags in the page and the body's onload but it has no effect. Is there something I'm missing about making a focus() call as the page loads, or another way to launch a popup that IE8 won't hide?</p>