Navigator.platform (Property)

The name of the hardware or operating system that the browser is running on.


JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Opera - 5.0
Property/method value type:String primitive
JavaScript syntax:-navigator.platform

Using this property to optimize the page content for the platform can yield some benefits in performance at the expense of a little more work required to develop the site content.

Here are some possible values for this property:

Other values will be received by users of Unix systems.

This at least lets you distinguish between users running on one of the modern versions of Windows vs. a Macintosh user, or a user of an older platform. You can then opt to present simpler content with less client-side rendering effort on a lesser platform.

Property attributes: