Friday, 13 May 2016

Detect IE browser apply conditions

Detect IE browser apply conditions :
======================

All version of IE and(windows) OS support.


<script>
    if (window.ActiveXObject || "ActiveXObject" in window) {
        alert("IE")
    }

 else{
        alert('Non-IE');
     }
    </script>

No comments:

Post a Comment

KISS, DRY, SOLID, YAGNI — A Simple Guide to Some Principles of Software Engineering and Clean Code

1 — KISS (Keep It Simple, Stupid)  Simplicity triumphs over complexity. Direct and clear codes are better for developing, maintaining, and s...