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.appCodeNameRead only- Always returns "
Mozilla", in any browser. This property is kept only for compatibility purposes. NavigatorID.appNameRead only- Always returns "
Netscape", in any browser. This property is kept only for compatibility purposes. NavigatorID.appVersionRead only- Returns either "
4.0" or a string representing version information about the browser. Do not rely on this property to return a useful value. NavigatorID.platformRead only- Returns either the empty string or a string representing the platform the browser is running on. Do not rely on this property to return a useful value.
NavigatorID.productRead only- Always returns "
Gecko", in any browser. This property is kept only for compatibility purposes. NavigatorID.userAgentRead only- Returns the user-agent string for the current browser.
Methods
The NavigatorID interface doesn't inherit any methods.
NavigatorID.taintEnabled()- Always returns
false. JavaScript taint/untaint functions were removed in JavaScript 1.2. This method is only kept for compatibility purposes. Not available in workers.
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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
See also
- The
NavigatorandWorkerNavigatorinterfaces that implement it.
