Code
Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy onloadeddata attribute</title> </head> <body> <audio controls onloadeddata="loadedData()"> <source src="wikitechy.wav" type="audio/wav"> <source src="wikitechy.mp3" type="audio/mp3"> </audio> <script> function loadedData() { alert("The Wikitechy Audio is loaded!"); } </script> </body> </html>
Result