Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

when end sound show alert

<!DOCTYPE html> 
<html> 
<body> 

<p>Press play and wait for the audio to end.</p>

<audio id="myAudio" controls>
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">
  Your browser does not support the audio element.
</audio>

<script>
var aud = document.getElementById("myAudio");
aud.onended = function() {
  alert("The audio has ended");
};
</script>

</body> 
</html>
Comment

PREVIOUS NEXT
Code Example
Javascript :: white when respons show code 
Javascript :: Datatable js Search Server side after time or word length 
Javascript :: Expresion regular para validar contraseñas 
Javascript :: ray intersection js 
Javascript :: nodejs stream pipeline with custom transform 
Javascript :: how to change name on tab when user goes to another tab 
Javascript :: membuat validasi form dengan javascript 
Javascript :: marko js 
Javascript :: moment js with nodejs 
Javascript :: javascript detect if browser is not google chrome 
Javascript :: how to print in html 
Javascript :: ... in javascript 
Javascript :: javascript math round 
Javascript :: loop on each character js 
Javascript :: js date 
Javascript :: google places API details JS 
Javascript :: how to remove react icon from tab 
Javascript :: type js 
Javascript :: react native 
Javascript :: pass object by value js 
Javascript :: javascript sort object by value descending 
Javascript :: Difference Between for...of and for...in Statement 
Javascript :: why we use $ in jquery 
Javascript :: js module pattern 
Javascript :: destructuring assignment in javascript 
Javascript :: bs modal service angular pass data 
Javascript :: how to clear radio field in jquery 
Javascript :: sort array with negative numbers 
Javascript :: javascript function with input value 
Javascript :: how to remove the elements from array and how to replace a new element in javascript 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =