title: Javascript window.open does nothing, produces no error
body: <p>So I've been asked to have it where a new window is produced every time a user loads a page. So I've created the following code located in the  tag...</p>
  
  <pre><code>&lt;SCRIPT TYPE="text/javascript"&gt;
              function popup(mylink, windowname) {
                  if (! window.focus) return true;
  
                  var href;
  
                  if (typeof(mylink) == 'string') {
                      href = mylink;
                  } else {
                      href = mylink.href;
                      window.open(href, windowname, 'width=400,height=200');
                  }
  
                  return false;
              }
          &lt;/SCRIPT&gt;
  </code></pre>
  
  <p>and the onLoad function to create the popup on page load</p>
  
  <pre><code>&lt;body onLoad="popup('http://yahoo.com', 'ad')"&gt;
  </code></pre>
  
  <p>However, nothing happens. No tab is created, no new window is created, and when viewing through firebug, no error is produced. Attempted this on chrome, firefox and IE9 with the same results, with none of the browsers complaining they've blocked a popup window. Am I missing something incredibly simple here?</p>