Topic: Links target to iframe, but open in a new tab
Hello again,
I've been having a problem with my hyperlinks targeted to iframes that I have never had before. When it's supposed to load the linked page in the iframe, it instead opens the link in a new tab.
What's strange is I have been able to get this to work before with no problems at all.
I tried even putting the links into the source page that first loads in the iframe, it STILL opens in a new tab.
The hyperlinks:
<div id="subnav"><h2><a href="pages/videothumbs.htm" target="thumbnails">Videos</a>
| <a href="pages/photothumbs.htm" target="thumbnails">Photos</a></h2><!-- End Subnav --></div>The iframes:
<div id="gallery">
<iframe id="view" allowtransparency="true" frameborder="0" src="Pages/mediastart.htm"></iframe>
<br>
<iframe id="thumbnails" allowtransparency="true" frameborder="0" src="Pages/mailinglistform.php"></iframe>
<!-- End Gallery -->
</div>All the formatting on these are being done with CSS, this is the code for them:
div#subnav
{
position: relative;
margin-left:auto;
margin-top:auto;
margin-right:auto;
text-align:center;
}
iframe#view
{
text-align:center;
width:600px;
height:300px;
}
iframe#thumbnails
{
overflow-y:hidden;
overflow-x:auto;
width:600px;
height:100px;
}
div#gallery
{
position: relative;
margin-left:20%;
margin-top:25%;
margin-right:auto;
text-align:center;
}I really appreciate any help given. ![]()
-Raven
