HTML onplaying Attribute

❮ HTML Attributes


<video onplaying="myFunction()">


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

Standard Syntax

<element onplaying="script">

Browser Support


Applies to:

The onplaying attribute can be used on the following element:

Element Attribute
<audio> playing
<video> playing

Attribute Values

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