javascript - HTML how to target a link in a iframe to another iframe -


working code

assuming have page 2 different iframe first menu , second container of selected page.

how can @ click of link in menu frame display selected page iframe container?

in menu page have

...  </li>          <li class="title"><a href='javascript:parent.document.getelementbyid("frame").src = "pages/setting.php"'><?php echo $lang['menu_impostazioni']; ?></a>          <img src="images/bullet_arrow_down.png" /></li>         <li class="sub-menu">           <ul> ... 

in index this:

... <iframe id="menufrm" src="menu.php" width="250px" height="700px" frameborder="none"></iframe> <iframe name="frame" src="" width="99%" height="99%" frameborder="none"></iframe>  ... 

but this, when click in button in menu page displayed correctly in container, menu.php disappears , in place appears string relative path of document displayed in iframe.

how fix it?

<iframe src="frame1.html" name="myframe"> <a href="frame2.html" target="myframe"> 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -