gpt4 book ai didi

javascript - window.open 忽略宽度/高度参数

转载 作者:行者123 更新时间:2023-11-30 08:46:01 25 4
gpt4 key购买 nike

我无法让弹出窗口以特定大小打开。

看看http://jsfiddle.net/uHD6k/

我尝试使用的 js 是:

window.open('http://www.google.com', 'toolbar = 0', 'scrollbars = 1', 'statusbar = 0', 'menubar = 0', 'resizable = 0', 'height = 500', 'width = 433');

我哪里错了?

最佳答案

所有选项都在同一个字符串参数中:

  $('.my-link').click(function (e) {
e.preventDefault();

window.open('http://www.google.com', 'WindowName','toolbar = 0, scrollbars = 1, statusbar = 0, menubar = 0, resizable = 0, height = 500, width = 433');
});

关于javascript - window.open 忽略宽度/高度参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21987091/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com