问题描述
过去3个小时我一直试图让我的svg网站打开弹出窗口,而我所得到的只是Internet Explorer中的Permission Denied错误。我已经尝试了在谷歌上找到的一切,但没有任何效果。我甚至只是在没有参数的情况下调用window.open()为空,并且仍然获得了权限被拒绝错误。什么是目前在Internet Explorer中打开弹出窗口的标准...有效吗?
I've been trying for the past 3 hours to get my svg web site to open popups, and all I ever get is "Permission Denied" errors in internet explorer. I've tried everything I could find on google, and nothing works. I've even gone to the point of just calling window.open() blank with no parameters, and still get a permission denied error. What is the currently accepted standard for opening popups in internet explorer... that works?
推荐答案
这是安全性变化的一部分在IE6中制作。现在,您只能在用户启动的事件中调用window.open。例如,您的代码将在元素的onclick事件中起作用。 说这个:
This is part of the security changes made in IE6. Now you can only call "window.open" from within a user-initiated event. For example, your code would work inside an element's onclick event. The "window.open" MSDN page says this:
这篇关于你如何获得window.open在Internet Explorer 7中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!