Advertisement
Home Open Editor ❯

HTML onratechange Attribute

Example

<video onratechange="myFunction()">

Try this code ❯

Meaning

The ratechange event run when the playing speed of the audio/video is changed.


Standard Syntax

<element onratechange="script">


Applies to:

The onratechange attribute can be used on the following element:

Element Attribute
<audio> ratechange
<video> ratechange

Advertisement

Attribute Values

Value Description
script Specifies a script that run when the media ratechanged.
Home Open Editor ❯
Advertisement