navigator.appName

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

navigator.appName

Description

The appName property of the navigator object refers to the browser name.

Example

Listing 7.397 shows an example of how the appName property is used.

Listing 7.397 Example of the appName Property
<html>
<head>
<title> Example of the appName property of the navigator object</title>
</head>
<body>

<script language="JavaScript">
<!--Hide
// output the appName property
document.write(navigator.appName);
// 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.