title: aboout the difference between window.location and window.open
body: <p>i find that when the location attribute is set ,the page will  not redirect util the javascript run over, but the window.open will run right now.
  why?
  is there some documents about this??
  below is test codes..</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  window.location.href = ("http://www.baidu.com");
  window.open('http://google.com');
  //alert(1);
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;img src="http://pic5.bbzhi.com/fengjingbizhi/zhongguolvyoufengguanggaoqingbizhi/zhongguolvyoufengguanggaoqingbizhi_448610_9.jpg?q=1"
  /&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>