Detect if a USB device is plugged in Javascript from browser

后端 未结 2 577
花落未央
花落未央 2021-01-07 03:20

Is there Javascript based mechanism with which i can detect, through a browser, that a user has a specific usb device plugged in?

2条回答
  •  鱼传尺愫
    2021-01-07 04:26

    Your javascript code is sand boxed and therefore cannot access system resources such as usb devices.

    I think the only way to access the USB devices would be to write a browser plugin. How to get USB devices List from Browser

提交回复
热议问题