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
็พๅจใไบๆๆงใใผใฟใๅฏ่ชญๅฝขๅผใฎ JSON ใใฉใผใใใใซ็ฝฎใๆใใฆใใใจใใใงใใ
ใใฎไบๆๆงไธ่ฆงใฏๅคใๅฝขๅผใไฝฟใฃใฆใใใใใใซๅซใพใใใใผใฟใฎ็ฝฎใๆใใๆธใใงใใพใใใ
ๆๅฉใใใฆใใใ ใใๅ ดๅใฏใใใกใใใ๏ผ
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
- The
Navigator
andWorkerNavigator
interfaces that implement it.