title: How to open link from iframe using javascript
body: <p>I have this:</p>
  
  <pre><code>&lt;td onclick="window.location='http://www.google.com/';"&gt; &lt;/td&gt;
  </code></pre>
  
  <p>The problem is that I have this inside an iframe, so onclick it opens in the iframe. How do I open this link on the parent page instead of the iframe? </p>
  
  <p>(Is there a way to do this with one js script for all the links on the page?)</p>