self.opener.document.sampleapplet.query();试试!  呵呵 还是我..

解决方案 »

  1.   

    好像还是不行.这回提示"self.opener.document为空或不是对象"to:longshenwang(独眼龙) 
     能加你msn向你请教吗?这段时间你热心帮我解答好几次,谢谢.
    我的msn:[email protected]
      

  2.   

    还有要是不用设置主页面的form属性最好了.
      

  3.   

    用parent.a()就可以了...下面是详细代码: 1.asp 中的iframe调用了 2.asp ...
    1.asp
    <html><head>
      <script language="javascript">
      function Msg()
      {
         alert("这是1.asp中的消息提示");
      }
      </script>
    </head>
    <body>
      <iframe width="200px" src="2.asp"></iframe>
    </body>
    </html>2.asp
    <html>
    <head>
     <script language="javascript">
       function test()
       {
          parent.Msg();//这句就是调用父窗口的函数
       }
     </script>
    </head>
    <body>
       <input type="button" value="点击我试试" onClick="test()">
    </body>
    </html>知道怎么样调用父窗口的函数了...举一反三...那其他的就非常简单了..
      

  4.   

    下面的应该可以了,formname为前一窗中的名字,也就是<form name=form1>中的form1
    parent.document.formname.sampleapplet.query();
    加上form.就简单多了!