Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

sound on click

<button onclick="playSound()">Play</button>

<script>
let playSound = () => new Audio("src.mp3").play();
</scirpt>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sound #click
ADD COMMENT
Topic
Name
8+2 =