JavaScript + HTML5 Audio Examples

View each page's source to see the examples underlining code.
Make sure audio is enabled on your computer.

Simple mouseclick audio event
Multiple audio tracks mouseclick audio event
Play audio on pageload

Helpful Links
HTML5 audio tag properties
Javascript audio control

Be aware that browers handle audio VERY differently. If you can, try to have the audio tracks be in .WAV format.
Audacity is installed on most computers in the pod and it allows you to create audio tracks and save them in various formats.

To enable HTML5 you need to have a different DOCTYPE in the top of your html doc.