Window navigator.product Property
- ບ່ອນກ່ອນ platform
- ອີກບ່ອນໜ້າ taintEnabled()
- ກັບຄືນຊັ້ນກ່ອນ Window Navigator
Definition and Usage
product
Property returns the browser engine (product name).
product
Properties are read-only.
Tip:Due to compatibility reasons, all modern browsers return "Gecko".
Example
Example 1
Get navigator.product:
let product = navigator.product;
Example 2
Display all navigator properties:
let text = "<p>Browser CodeName: " + navigator.appCodeName + "</p>" + "<p>Browser Name: " + navigator.appName + "</p>" + "<p>Browser Version: " + navigator.appVersion + "</p>" + "<p>Cookies Enabled: " + navigator.cookieEnabled + "</p>" + "<p>Browser Language: " + navigator.language + "</p>" + "<p>Browser Online: " + navigator.onLine + "</p>" + "<p>Platform: " + navigator.platform + "</p>" + "<p>User-agent header: " + navigator.userAgent + "</p>";
ຄຳສັ່ງ
navigator.product
ຜົນກະທົບ
ປະເພດ | ການອະທິບາຍ |
---|---|
ສາຍຄວາມ | ຄວາມຊື່ບັນດາການຊອກຫາບັນການຊາກພິດຕະພັນ |
浏览器支持
所有浏览器都支持 navigator.product
:
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Chrome | IE | Edge | Firefox | Safari | Opera |
ສະໜັບສະໜູນ | ສະໜັບສະໜູນ | ສະໜັບສະໜູນ | ສະໜັບສະໜູນ | ສະໜັບສະໜູນ | ສະໜັບສະໜູນ |
- ບ່ອນກ່ອນ platform
- ອີກບ່ອນໜ້າ taintEnabled()
- ກັບຄືນຊັ້ນກ່ອນ Window Navigator