Latest web development tutorials

Navigator platform property

Navigator Object Reference Navigator Objects

Definition and Usage

platform property is a read-only string that declares the browser is running an operating system and (or) hardware platform.

grammar

navigator.platform


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support platform property


Examples

Examples

Your browser Which platform compiler:

<Script>

document.write ( "hardware platform:" + navigator.platform);

</ Script>

The above example output:


try it"


Examples

More examples

This example contains all the properties of the navigator.


Navigator Object Reference Navigator Objects