This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.
Returns a string representing the platform of the browser. The specification allows browsers to always return the empty string, so don't rely on this property to get a reliable answer.
platform = navigator.platform
platform is a string that must be an empty string or a string representing the platform on which the browser is executing.
For example: "
FreeBSD i386", "
Unless your code is privileged (chrome or at least has the
UniversalBrowserRead privilege), it may get the value of the
general.platform.override preference instead of the true platform.
|WHATWG HTML Living Standard
The definition of 'NavigatorID.platform' in that specification.
|Living Standard||Initial definition|
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari|
|Feature||Android||Chrome for Android||Firefox Mobile (Gecko)||IE Mobile||Opera Mobile||Safari Mobile|