新开window Tab居中方法

function openWin(url) {
		var iWidth = 600;
		var iHeight = 400;
		var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
		var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
		window
				.open(
						url,
						"newwindow",
						"height="
								+ iHeight
								+ ", width="
								+ iWidth
								+ ", innerHeight="
								+ iHeight
								+ ", innerWidth="
								+ iWidth
								+ ", top="
								+ iTop
								+ ", left="
								+ iLeft
								+ ", toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no");
	}

  

原文地址:https://www.cnblogs.com/gogolee/p/6339424.html