GlobalEventHandlers.oncuechange

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

oncuechange 属性属于 GlobalEventHandlers,是一个处理 cuechange 事件的事件处理器。当TextTrack更改了当前显示的提示时,cuechange 事件将会触发。

语法

js
element.oncuechange = handlerFunction;
var handlerFunction = element.oncuechange;

handlerFunction 可以为 null,也可以是一个处理指定事件的JavaScript 函数

规范

Specification
HTML
# event-media-cuechange
HTML
# handler-texttrack-oncuechange

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
cuechange event

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

查看更多