Paul McFedries' Web Home


JavaScript Programs

The JavaScript Browser Functions

The script on this page gives you the exact values returned by the two JavaScript functions that are used to determine the user's browser:

navigator.appName: Returns the name of the browser.
navigator.appVersion: Returns the version number and operating system of the browser.

Here's the script:

<SCRIPT LANGUAGE = "JavaScript">
<!--
    alert("navigator.appName = " + navigator.appName + "\nnavigator.appVersion = " + navigator.appVersion)
//-->
</SCRIPT>
To use this script, copy everything between and including the <SCRIPT> and </SCRIPT> tags and insert it on your page between the </HEAD> and <BODY> tags.
Copyright © 1995-2008 Paul McFedries and Logophilia Limited