一个链接同时控制两个帧的方法

主页面代码

<frameset rows="91,*,37" cols="*" framespacing="1" frameborder="no" border="0" bordercolor="#3333FF">
 <frame src="topframe.aspx" name="topFrame" scrolling="no" noresize="noresize" id="topFrame" title="topFrame" />
  <FRAMESET rows="*" COLS="180,6,*" FRAMESPACING="0" FRAMEBORDER="no" BORDER="0" id="mainframe" name="mainframe">
   <FRAME src='leftframe.aspx?kuangbie=<% =Server.UrlEncode(kuangbie) %>&modelid=<% =modelID %>' name="left">
      <frame scrolling=no noresize="true" name=toogle marginwidth=0 marginheight=0 src='wtoogle.html'  onmouseover='this.style.cursor="hand";' onclick='window.open("wtoogle.html");' style="cursor:pointer" >
   <FRAME src='main.aspx'id="main"  NAME="main">
  </FRAMESET>
 <frame src="down.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset>

链接页面代码

 <a id="teste" onclick="javascript:parent.main.location.href='Error.htm'" href='leftframe.aspx?kuangbie=<%=Server.UrlEncode(kuangbie) %>&modelid=<%#Eval("ModelID") %>' target="left">

原文地址:https://www.cnblogs.com/windphoenix/p/1517506.html