Javascript – Play Background Music

JavaScript Code


By this code you can easily play a music at background of your web page. Simply edit the music source ‘ src=”mymusic.mp3″ ‘ and put the music in the current folder or mention the music url as the source. The player is hidden in this code. If you want to see it remove the ‘hidden’ attribute. Also you can remove the ‘loop’ attribute to prevent looping. Hope to be useful![code id=139]



Be the first to comment

Leave a Reply

Your email address will not be published.


*