Click here to Skip to main content
15,936,887 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to detect USB devices name which was connected to my windows system using javascript.

So anyone please help me how I found all USB devices name which was connected to my System.

What I have tried:

I have tried to detect USB devices using the navigator object.
navigator.usb.getDevices()
Posted
Updated 9-Jun-20 8:26am

1 solution

You can't. Javascript doesn't have access to the client's hardware, because this would be a major security issue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900