SecurityError:操作不安全.未捕获的ReferenceError: openDialog is not de
"SecurityError: The operation is insecure." in firefox and "Uncaught ReferenceError: openDialog is not defined" in chrome
我试过了
openDialog('http://stackoverflow.com');
和
openDialog('http://localhost');
都抛出异常:
SecurityError: The operation is insecure
和
Uncaught ReferenceError: openDialog is not defined
在chrome openDialog()在所有浏览器中都不可用?
窗口。openDialog是window.open的扩展。它表现为相同,除了它可以选择性地接受一个或多个参数windowFeatures和windowFeatures本身只做了一点处理不同。
所以,如果你不使用额外的参数,使用如下:
window.open(
"http://localhost",
"DescriptiveWindowName",
"resizable=yes,scrollbars=yes,status=yes"
);
或
window.open("http://localhost");
如果使用strWindowFeatures参数,则不使用的特性列出的将被禁用或删除(除了标题栏和关闭其中
是的,标题栏和关闭按钮都不可能。
相关文章:
- 尝试使用 openDialog() 时出现安全错误
- CKEditor调用openDialog我得到淡出但没有对话框
- window.openDialog 不起作用
- 无法使用 electronjs 和 jquery 显示 OpenDialog
- openDialog()中是否可以使用相对URL/路径
- 从JQuery Mobile 1.2.0到1.3.1和JQuery 1.8.3到1.9.1更新,得到一个错误&;Refe
- CKEditor openDialog placeholders
- “window.frame.openDialog"无法在Mac OS X中选择文件
- SecurityError:操作不安全.未捕获的ReferenceError: openDialog is not de