HTML onemptied Event Attribute

Description

The event attribute onemptied occurs when the current playlist for an audio or video item is empty. An event can occur, for example, as a result of a disconnected Internet connection.

Syntax

<element onemptied="script">

Values

  • scriptThe name of the script to use when the event has been triggered.

Example

Sorry, no example

Supported Tags

<audio> and <video>

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
XXYes3.5XX
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
YesYes4XXX