HTML onplaying Attribute

❮ HTML Attributes

Example

<video onplaying="myFunction()">

Meaning

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




Status




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