parent.frames["bottomFrame"].document.form1.txtBody.value="http://www.hao123.com";

解决方案 »

  1.   

    试过了 你们两个的方法都可以的啊(XP+IE6)。
    -------------index.htm<frameset rows="*" frameborder="no" border="0" framespacing="0">
      <frameset cols="100,*" frameborder="no" border="0" framespacing="0">
      <frame src="left.asp" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
      <frameset rows="*,100" frameborder="no" border="0" framespacing="0">
        <frame src="main.html" name="mainFrame" id="mainFrame" title="mainFrame" scrolling="auto"/>
        <frame src="bottom.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
      </frameset>
      </frameset>------------------------main.html
    main
    <script>
    function pro(){
    parent.bottomFrame.document.form1.txtBody.value="http://www.hao123.com";
    }
    </script>
    <button onclick="pro();">button</button>----------------------bottom.html
    bottom
    <form name="form1">
    <input type="text" name="txtBody" id="txtBody" value="aaaaa">
    </form>