parent.ifa.right部分的名字.location

解决方案 »

  1.   

    1.htm:<html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head><frameset cols="80,*" frameborder="NO" border="0" framespacing="0"> 
      <frame name="leftFrame" scrolling="NO" noresize src="left.htm">
      <frame name="rightFrame" src="right.htm">
    </frameset>
    <noframes><body bgcolor="#FFFFFF" text="#000000"></body></noframes>
    </html>
    right.htm:<select onchange="parent.leftFrame.location=this.value">
      <option value="1.php">1.php</option>
      <option value="2.php">2.php</option>
    </select>
      

  2.   

    谢谢!
    还有个问题,在frame中有记录删除功能,点删除调用另一页面,完成后返回原页面。
    删除页面中返回代码:
    echo "<script>window.location.href='oamanager.php';</script>";
    怎样修改才能在frame中显示。oamanager.php
      

  3.   

    你在frame里打开的,怎么会不在frame里?如果是target="_blank"的话,"window.opener.location.href='oamanager.php'"
      

  4.   

    知道原因了,谢谢!还有
    select onchange="parent.ifa.location=this.value">
      <option value="1.php">PC</option>
      <option value="2.php">打印机</option>
    </select我想把设备类型(pc、打印机)传入frame里,怎么做?
      

  5.   

    onchange="parent.ifa.location=this.value+'?text='+this.options[selectedIndex].text"