Visit Mozilla.org

DOM:window.navigator.platform

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Returns a string representing the platform of the browser.

[edit] Syntax

platform = navigator.platform 

platform is a string with one of the following values: "Win32", "Linux i686", "MacPPC", "MacIntel", or other.

[edit] Example

alert(navigator.platform); 

[edit] Notes

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.

[edit] Specification

DOM Level 0. Not part of any standard.