--- title: NavigatorID slug: orphaned/Web/API/NavigatorID tags: - API translation_of: Web/API/NavigatorID original_slug: Web/API/NavigatorID ---

{{APIRef("HTML DOM")}}

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 {{domxref("Navigator")}} or {{domxref("WorkerNavigator")}}, implement it.

Properties

The NavigatorID interface doesn't inherit any property.

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

Methods

The NavigatorID interface doesn't inherit any method.

{{domxref("NavigatorID.taintEnabled()")}} {{deprecated_inline()}}
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
{{SpecName('HTML WHATWG', '#navigatorid', 'NavigatorID')}} {{Spec2('HTML WHATWG')}} Added the appCodeName property and the taintEnabled() method,  for compatibility purpose.
{{SpecName('HTML5 W3C', '#navigatorid', 'NavigatorID')}} {{Spec2('HTML5 W3C')}} Initial specification.

Browser compatibility

{{Compat("api.NavigatorID")}}

See also