Hello I want to detect the Browser , IE 8 or more will be appropriate for me. For this i used following code but it fails for IE 11 . For other its detecting properly.
Use !(window.ActiveXObject) && "ActiveXObject" in window to detect IE11 explicitly.
!(window.ActiveXObject) && "ActiveXObject" in window
To detect any IE version, use window.ActiveXObject || "ActiveXObject" in window instead.
window.ActiveXObject || "ActiveXObject" in window