I’m using the exactly code of SweetAlert2 examples page: Works fine on Firefox and Chrome, but Internet Explorer shows SCRIPT1002: Syntax Error and not run the script…IE flag this portion as syntax error: Thanks for any help Answer (result) => {} is an arrow function which is completely unsupported in IE. To fix this you’ll have to use a traditional
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