window.showModelessDialog("/common/printManager.htm",null,"dialogwidth:7;dialogtop:100;dialogleft:20px;dialogheight:230px;help:0;status:0;"); 

解决方案 »

  1.   

    Function txJS_OpenMDlg(ByVal rtnBoxID As String, ByVal funName As String, ByVal src As String, ByVal paramStr As String, ByVal dlgLeft As Integer, ByVal dlgTop As Integer, ByVal dlgWidth As Integer, ByVal dlgHeight As Integer) As String
            Dim strScript As String = "<script>" + vbCrLf
            strScript += "function " + funName + "{" + vbCrLf
            strScript += "var str=window.showModalDialog('" + src + "','" + paramStr + "','dialogLeft:" + CStr(dlgLeft) + "px;dialogTop:" + CStr(dlgTop) + "px;dialogHeight:" + CStr(dlgHeight) + "px;dialogWidth:" + CStr(dlgWidth) + "px" + _
            ";status:no;help:no;scroll:no')" + vbCrLf
            strScript += "if(str!=undefined) document.Form1." + rtnBoxID + ".value=str" + vbCrLf
            strScript += "}" + vbCrLf
            strScript += "</script>" + vbCrLf
            Return strScript
        End Function
      

  2.   

    Response.Write("<script>window.showModalDialog('"+myUrl+"','dialogWidth:360px;dialogheight:120px;status:Modal;help:no');</script>");showModalDialog函数有三个参数第一个是网址
    第二个是传递到窗口的数据
    第三个才是窗口属性
      

  3.   

    showModalDialog
    内的一个链击点击如何关闭该窗口?
      

  4.   

    <a href="javascript:window.close()" target="_self">关闭</a>