This code will present a music console with the appropriate controls like this: (If you don't see any music controls and don't hear any music, you may need to download a plugin for your browser.) Need to create a music playlist? You can make your music player loop through more than one song using a music playlist. How to preload a sound file You can preload music files so that the music starts immediately after the user has clicked on the link. You can preload using the following technique: