is Browser IE or not ?

function isBrowserIE() { var ua = window.navigator.userAgent; var rv = false; if (ua.indexOf('MSIE ') > 0) { // IE 10 or older rv = true; } if (ua.indexOf('Trident/') > 0) { // IE 11 rv = true; } return rv; }
very basic, no-BS function to detect if browser is Internet explorer (Edge doesn't count as IE)

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.