title: Navigate URL in iframe with Javascript
body: <p>I have this code, to navigate a URL with javascript in an iframe, but it does not work. Why? </p>
  
  <p>For example, I want navigate to <code>site.com</code> when I click link1.</p>
  
  <pre><code>&lt;script language="javascript"&gt;
  function nav()
  {
  window.navigate('http://site.com',target="DBox");
  }   
  &lt;/script&gt;   
  
  
  &lt;a href="javascript:nav();"&gt;link1&lt;/a&gt;
  
  &lt;iframe name="DBox" src="http://example" frameborder="0" style="width:100%;height:100%"&gt;&lt;/iframe&gt; 
  </code></pre>