element.onemptied = handlerFunction; var handlerFunction = element.onemptied;
handlerFunction should be either
See the DOM event handlers page for information on working with
emptied event is fired when the media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the
load() method is called to reload it.
emptied event documentation for more information about the event.
|HTML Living Standard
The definition of 'onemptied' in that specification.