Code
Execute
<!DOCTYPE html> <html> <head> <title>html tutorial - html5 - html code - html form - In 30Sec by Microsoft Award MVP - | wikitechy onloadedmetadata attribute</title> <base href="../tryit/"> </head> <body> <audio controls onloadedmetadata ="loadedMetaData()"> <source src="wikitechy.wav" type="audio/wav"> <source src="wikitechy.mp3" type="audio/mp3"> </audio> <script> function loadedMetaData() { alert("The Meta Data is loaded!"); } </script> </body> </html>
Result