http://www.html5rocks.com/en/tutorials/getusermedia/intro/
Depending on your browser you will probably need to give this page permission to access the camera.
e.g. Chrome would will be asking you via a little pop up at the top of this page...