给个思路A页OPEN NEW WIN,然后延时等待回传
B页 ONLOAD,回传参数到A
A页调用B页函数

解决方案 »

  1.   

    window.showdialog 应该可以调用子页面的js
      

  2.   

    做一个演示给你:
    A.htm
    <html>
    <head>
    <script>
    function Test()
    {
    alert("Test");
    }
    </script>
    </head>
    <body>
    <button onclick="window.open('B.htm')">B.htm</button>
    </body>
    </html>B.htm
    <html>
    <head>
    </head>
    <body>
    <button onclick="window.opener.Test();">Test</button>
    </body>
    </html>
      

  3.   

    或者 var win = new window() 这样不知道会不会有用
    调用win的js
      

  4.   

    哦,看错了,你是要父页面调用子页面重写一个.A.htm
    <html>
    <head>
    <script>
    var mywin;
    </script>
    </head>
    <body>
    <button onclick="mywin = window.open('B.htm')">Open B.htm</button>
    <button onclick="mywin.Test('Hello World');">Get</button>
    </body>
    </html>B.htm
    <html>
    <head>
    <script>
    function Test(str)
    {
    alert(str);
    }
    </script>
    </head>
    <body>
    </body>
    </html>