Iframe Issue

hockeygoalie5

In Runtime
Messages
299
Location
United States
I am coding a web page that has two iframes, one for a sub navigation box and another that serves as the main iframe. Both iframes have a name and ID tag. I've tried using the Java command loadintoframe and the target attribute but the links still won't open in either iframes.

Here is the code for both frames:
Code:
<iframe id="subnav" src="nav/websitenav.html" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
Code:
<iframe name="mainframe" id="mainframe"  src="home.html" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:compact"></iframe>
One of the links:
Code:
<div class="content" id="content"><a href="team.html" target="mainframe"><img src="../images/content/+.png" text-decoration="none" width="8" height="8" border="0" />Meet The Team</a>
The links still open in a new window.
 
What are you specifically using the iframes for? 9 times out of 10 iframes are bad for your site. Either browsers don't support them the same way or it negatively affects your websites SEO.
 
Back
Top Bottom