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 property.

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

Methods

The NavigatorID interface doesn't inherit any method.

NavigatorID.taintEnabled()
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
NavigatorID の定義
現行の標準 Added the appCodeName property and the taintEnabled() method,  for compatibility purpose.
HTML5
NavigatorID の定義
勧告 Initial specification.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (有) (有) (有) (有) (有)
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (有) (有) (有) (有) (有) (有)

See also

ドキュメントのタグと貢献者

タグ: 
このページの貢献者: fscholz
最終更新者: fscholz,