title: How to make links inside an IFRAME to open outside this Iframe?
body: <p>I have created a widget kind of. In reality I put the information in a php file and then I provided the Iframe code for this file to my members. </p>
  
  <p>Considering site A is member's site and site B is my site.</p>
  
  <p>Site A shows the IFRAME:</p>
  
  <pre><code>&lt;iframe src="http://siteB.com/try.php" height="240px" width="286px"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>When this IFRAME is clicked, it opens a new pop window, because of this code:</p>
  
  <pre><code>&lt;a href="#" onClick="return mbetter('http://siteB.com/chat/new_chat.php?reader=&lt;?php echo $id; ?&gt;')"&gt;&lt;?php echo $status_img; ?&gt;&lt;/a&gt;
  </code></pre>
  
  <p>So far so good. </p>
  
  <p>Now the problem is this pop up window also has a link. How can I make this link open outside this IFRAME, to be more specific, to take them to Site B , my site . At the moment this link opens inside the iframe and it can't be used this way.</p>
  
  <p>This last link is:</p>
  
  <pre><code>&lt;a onclick="return targetopener(this,true)" target="_top" href="http://siteB.com/services.php"&gt;
  </code></pre>
  
  <p>It works perfectly in my site but not in an Iframe. I know I complicated myself a little with this iframe but I adapted a solution to my poor knowledge. I'm opened to new solutions though, if this link can't be opened outside the Iframe. Thank you in advance!</p>