HTML onplay Attribute
Example
<video onplay="myFunction()">
Standard Syntax
<element onplay="script">
Applies to:
The onplay attribute can be used on the following element:
Advertisement
Attribute Values
| Value | Description |
|---|---|
| script | Specifies a script that run when the media is play. |