chrome不再支持dialog对话框,模仿对话框类似的效果

function openPage(openPageUrl,openPageName){
		var iWidth = 600;
		var iHeight = 700;
		var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
		var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
		var win = window.open(openPageUrl,
						openPageName, 
						"width=" + iWidth + ", height=" + iHeight + ",top=" + iTop + ",left=" + iLeft + ",toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no,alwaysRaised=yes,depended=yes");
	}




openPageUrl:本地的链接路径

openPageName:界面的名字





你可能感兴趣的:(chrome不再支持dialog对话框,模仿对话框类似的效果)