Display Browser Type

Who is visiting? This script demonstrates how to extract a readable browser name (like "Google Chrome") from the complex `navigator.userAgent` string.

You seem to be using:

Detecting...

Copy the Script

<script>
function getBrowserName() {
    var ua = navigator.userAgent;
    if (ua.indexOf("Chrome") > -1 && ua.indexOf("Edg") == -1) return "Google Chrome";
    if (ua.indexOf("Safari") > -1 && ua.indexOf("Chrome") == -1) return "Apple Safari";
    if (ua.indexOf("Firefox") > -1) return "Mozilla Firefox";
    if (ua.indexOf("Edg") > -1) return "Microsoft Edge";
    return "Unknown Browser";
}

document.write("You are using: " + getBrowserName());
</script>

Frequently Asked Questions

This is a historical quirk. Almost all modern browsers (Chrome, Firefox, Safari) identify as 'Netscape' in `appName` for compatibility. You must parse `userAgent` for the real name.

Yes. The user agent string contains keywords like 'Mobile', 'Android', or 'iPhone' which can be extracted.

No. User Agents can be spoofed by users or extensions. However, for general display or analytics, it is accurate enough.