A.HTML 弹出一个B.HTML  如何让A.HTML一直保持在最前面!

解决方案 »

  1.   

    讲详细点,你这个B.html是用什么弹出来的? window.open 还是别的
      

  2.   

    你说的是类似IE7,firefox那样浏览器吧,打开一个页面,焦点还是在之前的页面
      

  3.   

    vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
    or
    vReturnValue = window.showModelessDialog(sURL [, vArguments] [, sFeatures])
    L@_@K
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
     <head>
      <title> new document </title>
      <meta name="generator" content="editplus" />
      <meta name="author" content="" />
      <meta name="keywords" content="" />
      <meta name="description" content="" />
     </head> <body>
     <script type="text/javascript">
     <!--
      // 焦点不可离开。
      //window.showModalDialog("http://www.g.cn");
      // 焦点可离开
      window.showModelessDialog("http://www.g.cn");
     //-->
     </script> </body>
    </html>