html tutorial - onloadstart Attribute in HTML - html5 - html code - html form



Onloadstart attribute in html

Learn html - html tutorial - Onloadstart attribute in html - html examples - html programs

  • The onloadstart attribute triggers when the browser initiate the loading process of audio/video media.

Syntax for onloadstart attribute in HTML:

<audio onloadstart="script">

Applies To:

Elements Attribute
<audio> onloadstart
<video> onloadstart

onloadstart Attribute Value:

Value Description
script The script to be run on onloadstart

Sample Coding for onloadstart Attribute in HTML:

Tryit<!DOCTYPE html>
<html>
    <head>
        <title>Wikitechy onloadstart attribute</title>
    </head>
    <body>
        <audio controls onloadstart="loadStart()">
           <source src="wikitechy.wav" type="audio/wav">
           <source src="wikitechy.mp3" type="audio/mp3">
        </audio>
        <script>
           function loadStart()
           {
             alert("The Wikitechy Audio Loading has been Started!");
           }
        </script>
    </body>
</html>

Code Explanation for onloadstart Attribute in HTML:

onloadstart Attribute Code Explanation

  1. onloadstart attribute used to trigger an event when the when the browser initiate the loading process of audio.
  2. loadStart JavaScript function show an alert message “The Wikitechy Audio Loading has been Started!”.

Output for onloadstart Attribute in HTML:

onloadstart Attribute Output

  1. The output shows "The Wikitechy Audio Loading has been Started!” in an alert message.

Browser Support for onloadstart Attribute in HTML:

Yes 9.0 Yes Yes Yes

Related Searches to onloadeddata Attribute in html