We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

The NavigatorID interface contains methods and properties related to the identity of the browser.

There is no object of type NavigatorID, but other interfaces, like Navigator or WorkerNavigator, implement it.

Properties

The NavigatorID interface doesn't inherit any properties.

NavigatorID.appCodeName Read only
Always returns 'Mozilla', on any browser. This property is kept only for compatibility purpose.
NavigatorID.appName Read only
Returns the official name of the browser. Do not rely on this property to return the correct value.
NavigatorID.appVersion Read only
Returns the version of the browser as a string. Do not rely on this property to return the correct value.
NavigatorID.platform Read only
Returns a string representing the platform of the browser. Do not rely on this property to return the correct value.
NavigatorID.product Read only
Always returns 'Gecko', on any browser. This property is kept only for compatibility purpose.
NavigatorID.userAgent Read only
Returns the user agent string for the current browser.

Methods

The NavigatorID interface doesn't inherit any methods.

NavigatorID.taintEnabled() Not available to workers
Always returns false. JavaScript taint/untaint functions were removed in JavaScript 1.2. This method is only kept for compatibility purpose

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'NavigatorID' in that specification.
Living Standard Added the appCodeName property and the taintEnabled() method,  for compatibility purpose.
HTML5
The definition of 'NavigatorID' in that specification.
Recommendation Initial specification.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes Yes Yes Yes Yes
appCodeName Yes Yes Yes Yes Yes Yes
appName Yes Yes Yes Yes Yes Yes
appVersion Yes Yes Yes Yes Yes Yes
platform Yes Yes Yes Yes Yes Yes
product Yes Yes Yes Yes Yes Yes
taintEnabled Yes Yes Yes Yes Yes Yes
userAgent Yes Yes Yes Yes Yes Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes Yes Yes Yes ?
appCodeName Yes Yes Yes Yes Yes Yes ?
appName Yes Yes Yes Yes Yes Yes ?
appVersion Yes Yes Yes Yes Yes Yes ?
platform Yes Yes Yes Yes Yes Yes ?
product Yes Yes Yes Yes Yes Yes ?
taintEnabled Yes Yes Yes Yes Yes Yes ?
userAgent Yes Yes Yes Yes Yes Yes ?

See also

Document Tags and Contributors

Contributors to this page: fscholz, abbycar, Sheppy, yesman82, teoli
Last updated by: fscholz,