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

Tanstack query vs React Fetch -Axios

import { useQuery } from "@tanstack/react-query"; function Users() { const { data, isLoading, isError, error } = useQuery({ ...