// 定义新窗口相关的变量
var newWindow = null;
var newWindowName = "new_window";
var newWindowFeature = "resizable=yes, scrollbars=yes, left=200, top=100, width=600, height=400";
function popUpSimpleWindow(){
// 判断该窗口是否已经打开
if(newWindow == null || newWindow.closed) {
// 打开上述自定义特性的窗口
newWindow = window.open("http://www.baidu.com", newWindowName, newWindowFeature);
}else{
newWindow.focus();
}
}
popUpSimpleWindow();//调用
js弹出浏览器简约窗口
最新推荐文章于 2023-01-09 21:38:14 发布