我也想知道,但是我感觉用close的话,你不管在那儿用他都全部关闭的。帮你顶一下

解决方案 »

  1.   

    s.write("abc");建议指定或新建一个元素(p,div,span,form等,并加上id),用下面的句子赋值:obj.innerText = "abc";或者obj.innerHTML = "<p>abc</p>";
      

  2.   

    不行.提交后页面就什么元素都没有了.那个指定的obj也消失了.错误内容是."错误,无法使用已释放的对象."
      

  3.   

    我这里没有这个问题,如下代码:index.htm
    ----------------------------
    <html>
    <frameset rows="100,100,*" name="dynamicFrameSet"  bordercolor="red">
    <frame name="frameId0" src='' frameborder="1">
    <frame name="frameId1" src='a.htm' frameborder="1">
    <frame name="frameId2" src='b.htm' frameborder="1">
    </frameset>
    </html>a.htm
    -------------------------------
    <html>
      <body>
        <form action="a.jsp" target='frameId0'>
         <input type='submit' name='aaa'>
        </form>
       </body>
    </html>b.htm
    ----------------------------------
    <html>
    <script>
     function main(){
        var s=top.frameId0.document;
        s.open();
        s.write("abc");
        s.close();
     }
    </script>
    <body>
    <input type=button onclick="main()">
    </body>
    </html>
      

  4.   

    不要意思我是初学者,有些地方看不懂:action="a.jsp" 的作用是什么呀,action为何物啊?你是不是应该加上<frameset col="50%,50%">呀,
      

  5.   

    不要意思我是初学者,有些地方看不懂:action="a.jsp" 的作用是什么呀,action为何物啊?你是不是应该加上<frameset col="50%,50%">呀,
      

  6.   

    表单的处理页面.action="a.jsp"表示用a.asp去处理你的form表单.
      

  7.   

    写一个什么都不返回的jsp试试.这个问题就会出现.