DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript play sound onclick
var audio = new Audio("soundfile.wav"); document.onclick = function() { audio.play(); }
PREVIOUS
NEXT
Tagged:
#javascript
#play
#sound
#onclick
ADD COMMENT
Topic
COMMENT
Name
8+2 =
Submit