js打开窗体

<textarea cols="50" rows="15" name="code" class="c-sharp">//备注:showModalDialog打开窗口后,里面的按钮:asp:button数据会刷新(也就是会再开一次窗口) function openWindow(rowID) { var result = false; if (rowID == "") { result = window.showModalDialog("../User/AttemperInfomation.aspx", "", "location:No;status:No;help:No;dialogWidth:600px;dialogHeight:480px;");//打开模式窗口 } else { result = window.location.href("../User/LookTranAttemperInfomation.aspx?carcode=" + encodeURI(Grid_List.getItemFromClientId(rowID).getMember("运单号").Value));//本网打开一个窗口(一个窗口) //result = window.open("../User/AttemperInfomation.aspx?carcode=" + encodeURI(Grid_List.getItemFromClientId(rowID).getMember('ID').Value), "", "height=600, width=600,top=150,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no");//打开一个新窗口(两个窗口) var pageResult = window.open("../Map/ClientLoadUnAddUpInfo.aspx?FecthAddressID=" + encodeURI(Grid_List.getItemFromClientId(rowID).getMember("FECTHADDRESSID").Value) + "&amp;CustomersType=" + encodeURI(Grid_List.getItemFromClientId(rowID).getMember("客户类型").Value), "aa", "height=" + (screen.height.toString()) + ",width=" + (screen.width.toString()) + ",top=0,left=0;toolbar=No;menubar=No;scrollbars=No;resizable=No;location=No;status=No");//打开全屏窗口 用js 打开新窗口的时候,窗口最大化。 function showBigLisence(url){ if(url!== undefined &amp;&amp; url!== null &amp;&amp; url !== ''){ var scrWidth=screen.availWidth; var scrHeight=screen.availHeight; var self=window.open(url,"newwindow","resizable=yes,toolbar=yes, menubar=yes, scrollbars=yes,location=yes, status=yes,top=0,left=0,width="+scrWidth+",height="+scrHeight); self.resizeTo(scrWidth,scrHeight); self.moveTo(0,0); } 参数解释 window.open 弹出新窗口的命令;   url 弹出窗口的文件名;   'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替;   height=100 窗口高度;   width=400 窗口宽度;   top=0 窗口距离屏幕上方的象素值;   left=0 窗口距离屏幕左侧的象素值;   toolbar=no 是否显示工具栏,yes为显示;   menubar,scrollbars 表示菜单栏和滚动栏。   resizable=no 是否允许改变窗口大小,yes为允许;   location=no 是否显示地址栏,yes为允许;   status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许; var sheight = screen.height.toString(); var swidth = screen.width.toString(); resalt = window.showModalDialog("../Map/MapLastToCompany.aspx?Rnd=" + Math.random() + "&amp;jobID=" + document.getElementById("hd_jobID").value, "", "dialogHeight:" + sheight + "px;dialogWidth:" + swidth + "px;resizable=yes;toolbar=yes;menubar=yes;scrollbars=no;location=yes;status=yes;top=0;left=0")</textarea>

你可能感兴趣的:(js打开窗体)