Skip to content
Advertisement

Tag: internet-explorer-11

How come this.hasOwnProperty(‘window’) is true in chrome and false in IE11?

I run this code: In chrome it outputs [window] true in IE11 it outputs [window] false Why? Answer IE messes up the hasOwnProperty method completely as it’s painful with host Objects (host objects don’t have the hasOwnProperty method). What we can do however is access the Object.prototype directly to guarantee any hasOwnProperty calls haven’t been tampered with or overridden. The

Internet Explorer 11 detection

I know IE 11 has different user agent string than all other IE I have tried to detect IE 11 with answer specified for this question’ Jquery fail to detect IE 11 Thats !!navigator.userAgent.match(/Trident/7./) But I am getting error Object not found and needs to be re-evaluated. Then I openede developer console in IE11 and tried to access some predefined

Advertisement