Navigator: hid property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
TheNavigator.hidread-only property returns anHID object providing methods for accessing HID device connections and events that fire when the user agent connects to or disconnects from a device.
Where a definedPermissions Policy blocks WebHID usage, theNavigator.hid property will not be available.
In this article
Value
AnHID object.
Specifications
| Specification |
|---|
| WebHID API> # dom-navigator-hid> |