navigator.appVersion

JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax

navigator.appVersion

Description

The appVersion property of the navigator object is used to get the browser version. The returned property contains the browser version, platform on which the browser is running, and the country (either international or domestic).

Example

Listing 7.398 shows an example of how the appVersion property is used.

Listing 7.398 Example of the appVersion Property
<html>
<head>
<title> Example of the appVersion property of the navigator object</title>
</head>
<body>

<script language="JavaScript">
<!--Hide
// output the appVersion property
document.write(navigator.appVersion);
// End Hide --->
</script>

</body>
							
</html>
						

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.