let devices = await navigator.hid.getDevices();
devices.forEach((device) => {
console.log(`HID: ${device.productId}`);
});HIDDevice: productId property / notebook
HIDDevice: productId property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.