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