查一下 window.showModelessDialog() 方法的参数

解决方案 »

  1.   

    你要干嘛啊 如果是简单的你可以用DIV来模拟
      

  2.   


    同意楼上的,用div或者window.showModelessDialog() 
    当然还有暴力弹出窗口的方法。
    欢迎加入群77055170
      

  3.   

    建议使用这个或许会更好:http://www.scriptlover.com/controls/EasyWindow/EasyWindow.html
      

  4.   


    var isMSIE= (navigator.appName == "Microsoft Internet Explorer");  //判断浏览器    function myWindow(){};myWindow.openSMD = function(strURL,strWindowName,intWidth,intHeight)   
    {         
        var x = parseInt(screen.width / 2.0) - (intWidth / 2.0);     
        var y = parseInt(screen.height / 2.0) - (intHeight / 2.0);     
     
      
        if (isMSIE)   
        {               
            retval = window.showModalDialog(strURL, strWindowName, "dialogWidth:"+intWidth+"px; dialogHeight:"+intHeight+"px; dialogLeft:"+x+"px; dialogTop:"+y+"px; status:no; directories:yes;scrollbars:no;Resizable=no; "  );     
        }    
        else  
        {     
            var win = window.open(strURL, strWindowName, "top=" + y + ",left=" + x + ",scrollbars=" + scrollbars + ",dialog=yes,modal=yes,width=" + intWidth + ",height=" + intHeight + ",resizable=no" );     
            eval('try { win.resizeTo(width, height); } catch(e) { }');     
            win.focus();                 
        }     
    }   
    myWindow.ParentWindowReload=function()
    {
        if (isMSIE)   
        {     
            //IE    
            dialogArguments.location=dialogArguments.location;   
        }   
        else  
        {    
            //FF   
            window.opener.location.reload();   
        }    
    }
    用myWindow.openSMD("网址","窗体名","长度","高度")
    在打开的窗口中用myWindow.ParentWindowReload()刷新父窗口