More "Try it Yourself" examples below.
Definition and Usage
The onplay event occurs when the audio/video has been started or is no longer paused.
Tip: The onpause event
occurs when the audio/video has been paused.
The numbers in the table specify the first browser version that fully supports the event.
Note: The addEventListener() method is not supported in Internet Explorer 8 and earlier versions.
|Supported HTML tags:||<audio> and <video>|
|DOM Version:||Level 3 Events|