Advertisement
Home Open Editor ❯

HTML onplaying Attribute

Example

<video onplaying="myFunction()">

Try this code ❯

Meaning

The playing event run when the audio/video is playing after having been paused or stopped for buffering.


Standard Syntax

<element onplaying="script">


Applies to:

The onplaying attribute can be used on the following element:

Element Attribute
<audio> playing
<video> playing

Advertisement

Attribute Values

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