关闭图标和window.open:可行性和处理

时间:2018-02-02 10:09:10

标签: javascript firefox

我正在建立一个新窗口:

var myWindow = window.open('', "RWindow", "dialog=yes, close=no, height=900, width=1400, top=70");

我修改了用户代理的相关配置参数(Firefox 58.0.1) - 请参阅:Firefox and UniversalBrowserWrite privilege

Mozilla window.open API( https://developer.mozilla.org/en-US/docs/Web/API/Window/open#Window_features) 指定关闭功能(需要特权):

When set to no or 0, this feature removes the system close command icon and system close menu item. It will only work for dialog windows (dialog feature set). close=no will override minimizable=yes.

对我无济于事(请参阅上文引用的代码)。我做错了什么?

0 个答案:

没有答案