window.open returns null in IE8 Protected Mode

假装没事ソ 提交于 2019-12-25 03:55:14

问题


I am trying to catch the return value of window.open(), but it is returning null/undefined. This happens when IE8 Protected mode is turned ON. Is there any altenative to get the window.open() returned object without disabling the protected Mode in IE8?


回答1:


You're trying to perform one of the things Protected Mode is specifically designed to stop...

From Microsoft -- open method:

Opening a new window from an application (other than the Internet Explorer process) may result in a null return value. This restriction occurs because Internet Explorer runs in protected mode, by default. One facet of protected mode prevents applications from having privileged access to Internet Explorer when that access spans process boundaries. Opening a new window by using this method generates a new process. For more information about protected mode, see Understanding and Working in Protected Mode Internet Explorer. This commonly occurs for applications that host the WebBrowser control.

If you're looking for a way to perform similar, then we'll need to know exactly what your doing and how your attempting to use window.open.

Most likely though, that would be a programming-specific problem, which would be off-topic for SU.



来源:https://stackoverflow.com/questions/25417203/window-open-returns-null-in-ie8-protected-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!