请教一个关于IFRAME的问题!分数不够可以再加
<body bottomMargin= "0 " leftMargin= "0 " topMargin= "0 " scroll= "no " rightMargin= "0 " MS_POSITIONING= "FlowLayout ">
<form id= "Form1 " method= "post " runat= "server ">
<TABLE id= "PageMaster " height= "100% " cellSpacing= "0 " cellPadding= "0 " width= "100% " border= "0 ">
<TR>
<TD style= "HEIGHT: 13px " bgColor= "#0066cc " colSpan= "3 " height= "13 ">
<!-- 主菜单 -->
<TABLE id= "MainMenuTable " cellSpacing= "0 " cellPadding= "0 " border= "0 ">
<TR>
<TD> <asp:literal id= "ltrMainMenu " runat= "server " EnableViewState= "False "> </asp:literal> </TD>
<TD> <asp:linkbutton id= "lbkSignOut " runat= "server " EnableViewState= "False " CssClass= "header "> 退出 </asp:linkbutton> </TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD id= "bg1 " style= "WIDTH: 115px; HEIGHT: 189px "> <iframe id= "IFRAME1 " style= "WIDTH: 120px; HEIGHT: 373px " src= "treemenu.aspx " scrolling= "yes "
runat= "server "> </iframe>
</TD>
<TD style= "WIDTH: 45px " width= "45 " height= "100% " rowSpan= "5 "> <IMG height= "100% " src= " " width= "14 "> </TD>
<TD align= "left " width= "100% " height= "100% " rowSpan= "5 ">
<!-- 主框架 --> <iframe id= "iframe2 " src= "main.aspx "> </iframe>
</TD>
</TR>
</TABLE>
</form>
</body>
//Treemenu是一个树型菜单,我想实现在点击treemenu中的菜单项,链接的页面在 iframe2中打开,请问怎样实现!
------解决方案-------------------- <!-- 主框架 --> <iframe id= "iframe2 " name= "main " src= "main.aspx "> </iframe>
在Treemenu的链接里,加target= "main "
------解决方案--------------------target属性设为目标框架名。
------解决方案--------------------这样不行 链接得加上:
<a href= "javascript:void(0) " onclick= "parent.bbb.location= 'test.aspx ';return false; "> test click </a>