function showStatus(url) {
// 弹框宽高
var width = 470;
var height = 170;
// 弹框居中
var top = (window.screen.height - 30 - height) / 2;
var left = (window.screen.width - 30 - width) / 2;
var openWin = window.open(url,"","width=" + width + ",height=" + height +
",top=" + top + ",left=" + left + ",toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes");
setTimeout(function(){ openWin.document.title = '查看状态'; }, 100);
};
window.open()居中和显示标题
最新推荐文章于 2024-05-26 17:11:42 发布