title: HTML how to target a link in a iframe to another iframe
body: <p>Working Code</p>
  
  <p>assuming you have a page with two different iframe where the first menu and the second container of the selected page. </p>
  
  <p>how can I at the click of a link in the menu frame display the selected page iframe container?</p>
  
  <p>In menu page i have this </p>
  
  <pre><code>...
   &lt;/li&gt;
           &lt;li class="title"&gt;&lt;a href='javascript:parent.document.getElementById("frame").src = "pages/setting.php"'&gt;&lt;?php echo $lang['MENU_IMPOSTAZIONI']; ?&gt;&lt;/a&gt;
           &lt;img src="images/bullet_arrow_down.png" /&gt;&lt;/li&gt;
          &lt;li class="sub-menu"&gt;
            &lt;ul&gt;
  ...
  </code></pre>
  
  <p>in index this:</p>
  
  <pre><code>...
  &lt;iframe id="menufrm" src="menu.php" width="250px" height="700px" frameborder="none"&gt;&lt;/iframe&gt;
  &lt;iframe name="frame" src="" width="99%" height="99%" frameborder="none"&gt;&lt;/iframe&gt;
   ...
  </code></pre>
  
  <p>But with this, when i click in the button in menu the page is displayed correctly in container, but menu.php disappears and in its place appears a string with relative path of the document displayed in iframe. </p>
  
  <p>how to fix it?</p>