Javascript – Play Background Music



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:





Preview:






Leave a comment

Your email address will not be published.


*



Subscribe to our Newsletter.

we will inform you new codes, fonts and etc…