Horje
play audio on button click html Code Example
play audio on click javascript
<button onclick="playSound()">Play</button>

<script>
let playSound = () => new Audio("src.mp3").play();
</scirpt>
play audio on button click html
var sound = new Audio("file.wav");

button.addEventListener('click',()=>{
	sound.currentTime = 0;
	sound.play();
});




Javascript

Related
knex referenced column 'id' in foreign key constraint 'ponto_items_pt_id_foreign' are incompatible. Code Example knex referenced column 'id' in foreign key constraint 'ponto_items_pt_id_foreign' are incompatible. Code Example
close tab using jquery Code Example close tab using jquery Code Example
react open url with button Code Example react open url with button Code Example
jquery check if iframe is loaded Code Example jquery check if iframe is loaded Code Example
condition in string interpolation angular Code Example condition in string interpolation angular Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6