📌  相关文章
📜  如何在中间而不是新选项卡中打开弹出窗口 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:41.438000             🧑  作者: Mango

代码示例1
function popupwindow(url, title, w, h) {
  var left = (screen.width/2)-(w/2);
  var top = (screen.height/2)-(h/2);
  return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}