Search
 
SCRIPT & CODE EXAMPLE
 

HTML

sound on click

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

<script>
let playSound = () => new Audio("src.mp3").play();
</scirpt>
Comment

PREVIOUS NEXT
Code Example
Html :: magento 2 call phtml file in cms page 
Html :: meta name= viewport 
Html :: Multibyte string input conversion in PHP is active and must be disabled 
Html :: basefont tag in html 
Html :: vue for loop if last 
Html :: how to stop button from affecting form submit in html 
Html :: tick html code 
Html :: how to set a default value for a dropdownlist in html with thymeleaf spring 
Html :: what is html 5 
Html :: iframe maps 
Html :: ico html 
Html :: html form validation for phone numbers 
Html :: ionic button trigger ion-datetime 
Html :: display subtitles with audio html 
Html :: what is dir attribute in html 
Html :: laravel phpcs.xml 
Html :: bootstrap latest version cdn 
Html :: tab image code 
Html :: input text size 
Html :: html phone click to call 
Html :: how to justify text in html 
Html :: html strong 
Html :: express send html file 
Html :: html auto start video 
Html :: img src data base64 
Html :: safari input type number problem with decimals 
Html :: hover over something to make html visible 
Html :: onclick to next page in html 
Html :: how to add a favicon to html 
Html :: how to get html code in selenium python 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =