title: Javascript redirect - New Window
body: <p>I'm trying to create a re-direct using Javascript from inside a blank iframe that will direct to a URL inside a new window or tab.</p>
  
  <p>More specifically, I'm trying to make a Facebook tab point to my company's webpage rather than load the page inside the tab's iframe which is not the same width as our web page.</p>
  
  <p>Here is the redirect script I already have but it doesn't open the URL in a new window.</p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
  &lt;!--Redirect to 75th page
  var time = null
  function move() {
  window.location = 'http://philmontscoutranch.org/Camping/75.aspx'
  }
  timer=setTimeout('move()',0000)
  //--&gt;
  &lt;/script&gt;
  </code></pre>
  
  <hr>
  
  <p>Ok - This snippet will open a new window when the page loads but Chrome's pop-up blocker blocked it. I didn't think about this until now. Maybe I could have it load in a light window? </p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
  &lt;!--Redirect to 75th page
  var time = null
  function open_win()
  {
  window.open("http://philmontscoutranch.org/Camping/75.aspx", "_blank");
  }
  
  timer=setTimeout('open_win()',0000)
  //--&gt;
  &lt;/script&gt;
  </code></pre>