NavigatorID

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 (en-US), implement it.

Properties

The NavigatorID interface doesn't inherit any property.

NavigatorID.appCodeName ่ชญๅ–ๅฐ‚็”จ ใ“ใ‚Œใฏ้žๆŽจๅฅจใฎ API ใงใ™ใ€‚ใพใ ๅ‹•ไฝœใ—ใฆใ„ใ‚‹ใ‹ใ‚‚ใ—ใ‚Œใพใ›ใ‚“ใŒใ€ใ‚‚ใ†ไฝฟ็”จใ™ใ‚‹ในใใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚
Always returns 'Mozilla', on any browser. This property is kept only for compatibility purpose.
NavigatorID.appName ่ชญๅ–ๅฐ‚็”จ ใ“ใ‚Œใฏ้žๆŽจๅฅจใฎ API ใงใ™ใ€‚ใพใ ๅ‹•ไฝœใ—ใฆใ„ใ‚‹ใ‹ใ‚‚ใ—ใ‚Œใพใ›ใ‚“ใŒใ€ใ‚‚ใ†ไฝฟ็”จใ™ใ‚‹ในใใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚
Returns the official name of the browser. Do not rely on this property to return the correct value.
NavigatorID.appVersion ่ชญๅ–ๅฐ‚็”จ ใ“ใ‚Œใฏ้žๆŽจๅฅจใฎ API ใงใ™ใ€‚ใพใ ๅ‹•ไฝœใ—ใฆใ„ใ‚‹ใ‹ใ‚‚ใ—ใ‚Œใพใ›ใ‚“ใŒใ€ใ‚‚ใ†ไฝฟ็”จใ™ใ‚‹ในใใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚
Returns the version of the browser as a string. Do not rely on this property to return the correct value.
NavigatorID.platform ่ชญๅ–ๅฐ‚็”จ ใ“ใ‚Œใฏ้žๆŽจๅฅจใฎ API ใงใ™ใ€‚ใพใ ๅ‹•ไฝœใ—ใฆใ„ใ‚‹ใ‹ใ‚‚ใ—ใ‚Œใพใ›ใ‚“ใŒใ€ใ‚‚ใ†ไฝฟ็”จใ™ใ‚‹ในใใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚
Returns a string representing the platform of the browser. Do not rely on this property to return the correct value.
NavigatorID.product ่ชญๅ–ๅฐ‚็”จ ใ“ใ‚Œใฏ้žๆŽจๅฅจใฎ API ใงใ™ใ€‚ใพใ ๅ‹•ไฝœใ—ใฆใ„ใ‚‹ใ‹ใ‚‚ใ—ใ‚Œใพใ›ใ‚“ใŒใ€ใ‚‚ใ†ไฝฟ็”จใ™ใ‚‹ในใใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚
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() (en-US) ใ“ใ‚Œใฏ้žๆŽจๅฅจใฎ API ใงใ™ใ€‚ใพใ ๅ‹•ไฝœใ—ใฆใ„ใ‚‹ใ‹ใ‚‚ใ—ใ‚Œใพใ›ใ‚“ใŒใ€ใ‚‚ใ†ไฝฟ็”จใ™ใ‚‹ในใใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚
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

BCD tables only load in the browser

See also