Horje
play sound in javascript Code Example
play sound javascript
var audio = new Audio("folder_name/audio_file.mp3");
audio.play();
javascript play sound onclick
var audio = new Audio("soundfile.wav");

document.onclick = function() {
  audio.play();
}
play audio on click javascript
<button onclick="playSound()">Play</button>

<script>
let playSound = () => new Audio("src.mp3").play();
</scirpt>
play sound in javascript
<script>
function play() {
  var audio = new Audio('https://interactive-examples.mdn.mozilla.net/media/examples/t-rex-roar.mp3');
  audio.play();
}
</script>
<button onclick-"play();">PLAY MY AUDIO</button>
play a sound wiith js
var audio = new Audio('audio.mp3');
  audio.play();
play audio in javascript
var audio = new Audio('audio_file.mp3');
audio.play();




Html

Related
how to get the name of a html balise and pass it in onPress Code Example how to get the name of a html balise and pass it in onPress Code Example
laravel old request radio check Code Example laravel old request radio check Code Example
9+15 Code Example 9+15 Code Example
pass method to composite jsf component Code Example pass method to composite jsf component Code Example
form multipart/form-data Code Example form multipart/form-data Code Example

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