HTML onwaiting Attribute

❮ HTML Attributes


<video onwaiting="myFunction()">


The waiting event run when the video stops because it needs to buffer the next frame.

Standard Syntax

<element onwaiting="script">

Browser Support


Applies to:

The onwaiting attribute can be used on the following element:

Element Attribute
<audio> waiting
<video> waiting

Attribute Values

Value Description
script Specifies a script that run when the media is waiting.
❮ HTML Attributes