An advanced barcode-reader written in JavaScript
getUserMedia
If your platform supports the getUserMedia API call, you can try the real-time locating and decoding features. Simply allow the page to access your web-cam and point it to a barcode.
The various options available allow you to adjust the decoding process to your needs (Type of barcode, resolution, ...)