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:
One of the links:
The links still open in a new window.
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>
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>