function  clear()
  {
    top.main.document.write("wo are");
    return true;
  }
这一段有问题  
把 top.main 改成 parent.main 试一下

解决方案 »

  1.   

    还有 几个地方如
    <input type="button" value="clear" onclick="return clear()" />
    这里 祛掉斜线 函数名用别的把 clear() 这个函数好象是系统用的还有 有按钮的 frame 和 main 最好是同一级别 如果不是则可用 
    parent 上一级上一级 的往上找 (比如 parent.parent )
      

  2.   

    在我这里试过的 运行可以通过
    //////////////////////////////////////////////////////////////////
    //         1.htm
    /////////////////////////////////////////////////////////////////
    <html>
    <frameset rows="50%,*">
         <frame src="2.htm" name="two">
         <frame src="3.htm" name="three">
    </frameset>
    </html>//////////////////////////////////////////////////////////////////
    // 2.htm
    /////////////////////////////////////////////////////////////////
    <html>
    <body>
        <input type=button OnClick="shuaxin()" value="刷新">
    </body>
    </html>
     <script language=javascript>
    <!--
    function shuaxin()
    {
        parent.three.document.write ("shuaxin")
    }
    //-->
    </script>/////////////////////////////////////////////////////////
    // 3.htm 
    ////////////////////////////////////////////////////////
    <html>
    <body>
    Hello
    </body>
    </html>