有2个Iframe框架,分别命名为"leftframe"和"mainframe",在"leftframe"中有个链接,我想在单击链接后在"mainframe"中打开链接页面,但每次都是在新窗口打开,应该怎么解决啊?
代码如下:
  <div>
    <asp:Label ID="message" runat="server" ></asp:Label>
   <table>
   <tr>
      <td style="width: 180px; height: 600px;">
          <iframe   id="leftframe" style="height: 600px; width:180px"  frameborder="0" src="menu.aspx"></iframe>
      </td>
      <td style="width: 800px; height: 600px;">
          <iframe   id="mainframe" style="width:800px; height:600px" frameborder="0"></iframe>
      </td>
    </tr>
   </table>
    </div>menu.aspx的代码如下:
<Div>
<table id="table9" cellspacing="0" cellpadding="0" width="140" align="center">
<tr>
<td align="center" style="height: 20px">
<a href="Instore.aspx" target="mainframe" style="font-size: small">入库管理</a>
</td>
</tr>
</table>
<Div>单击“入库管理”后在老是在新窗口打开,我想让“Instore.aspx”在"mainframe"这个框架里打开,该怎么改?