title: Self resize and center a window using javascript (no jquery) on page load
body: <p>This is not something we'd normally do but we're trying load a video into the blank window opened by a clickTag (from a banner ad) - and make it feel like a modal window as much as possible.</p>
  
  <p><strong>Is it possible to use javascript to self-resize the blank window opened by the clickTag and center it on the screen?</strong></p>
  
  <ul>
  <li>We can't apply anything to the link that is clicked so...</li>
  <li>Everything has to self-run as the page loads</li>
  <li>If possible, it would be nice to not see the browser tabs and address bar</li>
  <li>We're not loading jquery</li>
  <li>Are browser security alerts a potential problem?</li>
  </ul>
  
  <p>Essentially the user clicks to watch a video and we'd like them to watch the video without them feeling like they've gone to a completely different site.</p>
  
  <p>So far I can resize the window but can't figure out how to center it with:</p>
  
  <pre><code>&lt;script language="javascript"&gt;
  
    function resizeVideoPage(){
      resizeTo(400,390);
      window.focus();
    }
  &lt;/script&gt; 
  
  // Then...
  
  &lt;body onload="resizeVideoPage();"&gt;&lt;/body&gt;
  </code></pre>
  
  <p>Any pointers in the right direction would be much appreciated.</p>
  
  <p>Cheers</p>
  
  <p>Ben</p>