不行,模态对话框也只是对当前窗口管用window.showModalDialog(url)
window.showModelessDialog(url)

解决方案 »

  1.   

    showModalDialog(“URL”[, arguments]
    [, features])
    showModelessDialog(“URL”[, arguments]
    [, features])Feature      Type        Default       Description
    center       Boolean      yes          Whether to center dialog box
                                         (overridden by dialogLeft
                                           and/or dialogTop).
    dialogHeight Length      varies      Outer height of the dialog 
                                         box window. IE4 default length 
                                         unit is em; IE5 is pixel (px).dialogLeft  Integer      varies       Pixel offset of dialog box 
                                          from left edge of screen.dialogTop  Integer        varies       Pixel offset of dialog box 
                                           from top edge of screen.dialogWidth Length        varies      Outer width of the dialog box
                                         window. IE4 default length 
                                         unit is em; IE5 is pixel (px).help       Boolean        yes       Display Help icon in title bar.resizable   Boolean       no         Dialog box is resizable (IE5+
                                         only).status     Boolean        varies     Display statusbar at window
                                        bottom (IE5+ only). Default is
                                        yes for untrusted dialog box; no
                                        for trusted dialog box.
      

  2.   

    始终在最前面的 window.open 窗口
    <script language="JavaScript">
    var meizz = window.open("about: <body bgcolor=#000000>","win","fullscreen=yes");
        meizz.blur();
        self.focus();
        meizz.resizeTo(640,480);
        meizz.moveTo(screen.availWidth/2-320,screen.availHeight/2-240);
       ontopIntervalHandle = meizz.setInterval("window.opener.meizz.focus();",10);
    </script>
      

  3.   

    梅花雨,这样也太耗资源了吧
    这样各
    window.onblur=function(){setTimeout("window.focus()")}
      

  4.   

    漏写了
    window.onblur=function(){setTimeout("window.focus()",100)}
      

  5.   

    window.showModalDialog(url)
    window.showModelessDialog(url)
    就行了