HTML onemptied Attribute

❮ HTML Attributes


The onemptied script fires when the current playlist is empty.

Standard Syntax

<element onemptied="script">

Browser Support


Applies to:

The onemptied attribute can be used on the following element:

Element Attribute
<audio> onemptied
<video> onemptied

Attribute Values

Value Description
script Specifies the script to be run on onemptied
❮ HTML Attributes