HTML DOM onloadeddata Event Last Updated : 20 Jun, 2023 Comments Improve Suggest changes Like Article Like Report The DOM onloadeddata event in HTML occurs when the current frame data is loaded but the next frame's data is not enough data to play the audio/video. Events that occur during the loading process of an audio/video: onloadstartondurationchangeonloadedmetadataonloadeddataonprogressoncanplayoncanplaythrough Supported HTML tags: <audio><video> Syntax: In HTML: <element onloadeddata="myScript">In JavaScript: object.onloadeddata = function(){myScript};In JavaScript, using the addEventListener() method: object.addEventListener("loadeddata", myScript); Example: In JavaScript, using the addEventListener() method HTML <!DOCTYPE html> <html> <head> <title> HTML DOM onloadeddata Event </title> </head> <body> <h1 style="color:green"> GeeksforGeeks </h1> <h2> HTML DOM onloadeddata Event </h2> <video controls id="VideoId"> <source src= "https://media.geeksforgeeks.org/wp-content/uploads/20190705202742/Disabling-Tabs.mp4" type="video/mp4"> </video> <script> document.getElementById( "VideoId").addEventListener( "loadeddata", GFGFun); function GFGFun() { alert("Browser has loaded the current frame"); } </script> </body> </html> Output: Supported Browsers: The browsers supported by HTML DOM onloadeddata Event are listed below: Google Chrome 3Edge 12Internet Explorer 9Firefox 3.5Apple Safari 3.1Opera 10.5 Comment More infoAdvertise with us Next Article HTML DOM onloadeddata Event V Vijay Sirra Follow Improve Article Tags : Web Technologies HTML Web technologies HTML-DOM Similar Reads HTML DOM onloadedmetadata Event The onloadedmetadata event in HTML occurs when metadata is loaded for the specified audio/video. Events that occur during the loading process of an audio/video: onloadstartondurationchangeonloadedmetadataonloadeddataonprogressoncanplayoncanplaythrough Syntax: In HTML:<element onloadedmetadata="my 1 min read HTML DOM onload Event The HTML DOM onload event in HTML occurs when an object has been loaded. The onload event is mostly used within the <body> tag, in order to run the script on the web page that will load all the content completely. The onload event can be used to check the user's browser type and browser versio 2 min read HTML DOM onloadstart Event The HTML DOM onloadstart event occurs when the loading process of a specified audio/video starts. events that occur during the loading process of an audio/video: onloadstartondurationchangeonloadedmetadataonloadeddataonprogressoncanplayoncanplaythrough Syntax: In HTML:<element onloadstart="myScri 1 min read HTML | DOM onunload Event The onunload event in HTML occurs once the page is unloaded. for example, when the page is loading and the browser window has been closed by the user or submit a form, click on a link, etc. This event also occurs when the page is reloaded. Supported Tags <body> Syntax:  In HTML:  <element 1 min read HTML | DOM onstalled Event The onstalled event in HTML DOM occurs when media data get by the browser but the data is not available. Syntax: In HTML: <element onstalled="myScript"> In JavaScript: object.onstalled = function(){myScript}; In JavaScript, using the addEventListener() method: object.addEventListener("stalled" 1 min read Like