浏览器获取计算机屏幕的像数打开新的页面
浏览器获取电脑屏幕的像数打开新的页面
打开的独立的新页面 居中显示
function xxxx(){
var windowHeight=window.screen.height-120;
var windowWeight=window.screen.width-100;
var windowLeft=(window.screen.width-windowWeight)/2;
var openlocation="xxx/xxxx.jsp?";
//window.open("xxx/xxxx.jsp?");
window.open(openlocation,"_blank","top=20,left="+windowLeft+",width="+windowWeight+", height="+windowHeight+", toolbar=no,"+
"menubar=no,scrollbars=no, resizable=no,location=no, status=no");
}
打开的独立的新页面 居中显示