简体   繁体   中英

window.open returns null in IE8 Protected Mode

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM