August 1999
Intermediate to advanced
1488 pages
72h 53m
English
navigator.platform
The platform property of the navigator object returns a string representing the platform on which the browser is running. Valid platform values are: Win32, Win16, Mac68k, and MacPPC. There are also various values for UNIX platforms.
Listing 7.402 shows an example of how the platform property is used.
<html>
<head>
<title> Example of the platform property of the navigator object</title>
</head>
<body>
<script language="JavaScript">
<!--Hide
// output the navigator platform property
document.write(navigator.platform);
// End Hide -->
</script>
</body>
</html>
|
Read now
Unlock full access