Advertisement
Home Open Editor ❯

HTML onwaiting Attribute

Example

<video onwaiting="myFunction()">

Try this code ❯

Meaning

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


Standard Syntax

<element onwaiting="script">


Applies to:

The onwaiting attribute can be used on the following element:

Element Attribute
<audio> waiting
<video> waiting

Advertisement

Attribute Values

Value Description
script Specifies a script that run when the media is waiting.
Home Open Editor ❯
Advertisement