Force parent window of iFrame into Compatability m

2019-09-09 03:24发布

Facebook is having allot of JavaScript issues at the moment in Internet Explorer (IE 9), however by clicking the IE 8 Compatibility Mode button, or by switching to IE 8 Compatibility via the Developer tools you can get rid of all the JavaScript errors.

My apps are using the newer iFrame method, I have tried the following tags:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

<meta http-equiv="X-UA-Compatible" content="IE=IE8" />

Neither seemed to switch the parent frame into the correct mode (document.documentMode != 8), is there a way to force IE 9 into Compatibility mode for the whole site (facebook.com) from within a iFrame either via JavaScript or some undocumented method?

2条回答
我只想做你的唯一
2楼-- · 2019-09-09 03:43

Not unless you have control of the site.

查看更多
别忘想泡老子
3楼-- · 2019-09-09 03:47

You can have a look at compatilbility-view

In a web application where I had access to the server, I added a custom HTTPHeader entry for the target web site:

Custom Header name: X-UA-Compatible
Custom Header value:  IE=EmulateIE7

In order to force IE8 to behave like IE7, and it worked well.

查看更多
登录 后发表回答