打开OCX的那个页面时用window.open("ocx.html","ocx");

解决方案 »

  1.   

    可如果客户用 “文件”-》“新建”-》“窗口”呢,还是不行呀
    最好能有判断客户端的ocx是否有两个实例在运行的办法。如果有两个运行,就提示用户违反操作,关闭其中一个
      

  2.   

    <html>
    <head>
    <title>test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <object id="WebBrowser" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
    </object>
    <script language='javascript'>
    function wqp()
    {   window.open(top.location,"RUNMIT_EIAS","width="+(screen.width-10)+",height="+(screen.height-56)+",resizable=yes,scrollbars=yes,left=0,top=0,status=no");
        window.focus();
    document.all.WebBrowser.ExecWB(45,1);
    }
    if(window.name != "RUNMIT_EIAS")
    {
    wqp();
    }
    </script>
    <body bgcolor="#006699" leftmargin="0" topmargin="0">
    </body>
    </html>
      

  3.   

    我试过了这样也不可以,反正打开第二个ocx就不行。能不能判断系统里有几个这样的ocx在运行呢?