You can look at the following tutorial:

www.khronos.org/webgl/wiki/Tutorial