Display Browser Version

Drill down into the details. This script builds on browser detection to pull the exact version number, useful for tech support or analytics.

Your Browser Version:

...

UA: ...

Copy the Script

<script>
var ua = navigator.userAgent;
var version = "Unknown";

// Look for 'Chrome/'
var offset = ua.indexOf("Chrome/");
if (offset != -1) {
    version = ua.substring(offset + 7);
    version = version.split(" ")[0]; // Clean up
}

// (Add similar logic for Firefox/Safari)

document.write("Version: " + version);
</script>

Frequently Asked Questions

It helps in debugging. If a user says 'your site is broken', knowing they are on an outdated version (like IE 11 or Chrome 40) explains why modern CSS features aren't working.

Usually it is a string like '120.0.6099.71'. This script typically extracts the major version number (the first part) for simplicity.

Yes. You can parse the major version as an integer and redirect users if `version < 100`.