JS函数openwindow()

参数解释: js脚本结束

//居中显示 function openWindow(url,winName,width,height) { //     window.open(strURL,"_blank", "height=400, width=600, top=0, left=255, toolbar=no,menubar=no, scrollbars=no, resizable=no,location=no, status=no");

xposition=0; yposition=0; if ((parseInt(navigator.appVersion) >= 4 )) { xposition = (screen.width - width) / 2; yposition = (screen.height - height) / 2; } theproperty= "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=1," + "scrollbars=0," + "status=0," + "titlebar=0," + "toolbar=0," + "hotkeys=0," + "screenx=" + xposition + "," //for Netscape + "screeny=" + yposition + "," //for Netscape + "left=" + xposition + "," //for IE + "top=" + yposition; //for IE window.open(url,winName,theproperty );

}

你可能感兴趣的:(javascript,脚本,function,url,ie,工具)