Working with barcode scanner from web (Chrome, Internet Explorer)

I`m investigating can we develop web application which will get input from rugged barcode scanner. Web application will run via Chrome or Internet Explorer.

How I can get input from the scanner? Is it just scanned value will be inserted into text field using clipboard because scanner will be installed as USB HID? Or I have other options? Can I get more control and info from the scanner on a browser via JavaScript?