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




  • The onemptied attribute specifies though the present playlist is empty.
  • The onemptied attribute is a section of the Event Attributes.

Syntax for onemptied attribute in HTML:

<element onemptied="script">

Applies to:

Elements Attribute
<audio> onemptied
<video> onemptied

Sample coding for onemptied attribute in HTML:

<!DOCTYPE html>
<html>
    <head>
        <title>Wikitechy onemptied attribute</title>
    </head>
    <body>
        <video width="320" height="240" controls onemptied="onEmptied()">
            <source src="hibiscus.mp4" type="video/mp4">
        </video>    
        <script>
            function onEmptied() {
            alert("Wikitechy Video playlist is Empty!");
            }
        </script>
    </body>
</html>

Code Explanation for onemptied attribute in HTML:

onemptied Attribute Code Explanation

  1. <video> tag is used to embed a video file in the HTML Document.
  2. The onemptied attribute is used to trigger an event when the playlist is empty.
  3. The JavaScript function onemptied is used to display an alert message.

Browser Support for onemptied attribute in HTML:

Yes Yes Yes Yes Yes

Related Searches to onemptied attribute in html

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×