Hi, I am trying to set up a simple 2-frame index page, the top frame being a menu bar, which links to other pages. The main bottom frame displaying all other pages. I cannot get the menu bar links to bring up the new page in the main frame of the index page.
Index.htm:
<frameset rows="120,*">
<frame src="menu.htm" id="top" frameborder="0" scrolling="no" />
<frame src="home.htm" id="main" frameborder="0" scrolling="yes" />
</frameset>
Menu.htm:
<a href="class.htm" target="main"> <img src="class.gif" border="0" align="left" /> </a>
<a href="sample.htm" target="main"> <img src="sample.gif" border="0" /> </a>
When I click on the class.gif, the page displays, but in a new window, not in the main frame. Any idea what is wrong ? target="main" seems to be being ignored completely.
Also, is it just me or are these Sams Teach Yourself books full of errors ? Every time I use their sample coding it doesnt work !
Thanks,
Pinpoint
Index.htm:
<frameset rows="120,*">
<frame src="menu.htm" id="top" frameborder="0" scrolling="no" />
<frame src="home.htm" id="main" frameborder="0" scrolling="yes" />
</frameset>
Menu.htm:
<a href="class.htm" target="main"> <img src="class.gif" border="0" align="left" /> </a>
<a href="sample.htm" target="main"> <img src="sample.gif" border="0" /> </a>
When I click on the class.gif, the page displays, but in a new window, not in the main frame. Any idea what is wrong ? target="main" seems to be being ignored completely.
Also, is it just me or are these Sams Teach Yourself books full of errors ? Every time I use their sample coding it doesnt work !
Thanks,
Pinpoint