Javascript frames function only works on compatibility mode

209 Views Asked by At

I guess I don't understand what changes with compatibility mode in IE11, and I just had a general idea of how it works. The following function works fine on compatibility mode:

this.messageBody = frames["messageEditor___Frame"].frames[0].document.body.innerHTML;

But it fails to assign a value without compatibility switched on. I used try/catch to fin the error messaged which prompted to:

> Unable to get frames property of undefined or null reference.

I would appreciate if someone could fill me in on the changes that javascript goes through when compatibility mode is switched on/off.

Thank you in advance.

0

There are 0 best solutions below