Error in Internet Explorer 9 (not earlier versions or other browsers) when including jQuery in an iframe

前端 未结 4 1704
灰色年华
灰色年华 2021-01-11 18:46

Basically I have a page that launched a fancybox iframe. In that iframe I also include jQuery. But when I testing it in Internet Explorer 9 it gives me the error <

4条回答
  •  無奈伤痛
    2021-01-11 19:12

    This is a related issue: IE9 throws exceptions when loading scripts in iframe. Why?

    There seems to be some real issue in Internet Explorer with native global objects such as 'Function' and 'Object' being undefined in some circumstances when scripts are loaded early (in the head section) of an iframe...

    I placed a bounty on that other question to get some more attention to it.

    From experience I know this issue also exists in IE8, but it was more rare there it seems. Looks like in IE9 it has gotten worse...

提交回复
热议问题