Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript click sound

<audio id="audio" src="http://www.soundjay.com/button/beep-07.wav" autoplay="false" ></audio>
<a onclick="playSound();"> Play</a>
<script>
  function playSound() {
  var sound = document.getElementById("audio");
  sound.play();
}
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #click #sound
ADD COMMENT
Topic
Name
9+7 =