GlobalEventHandlers.ondurationchange

GlobalEventHandlersondurationchange属性是一个处理 durationchange 事件的EventHandler

durationchange事件会在duration发生变更时触发。

语法

element.ondurationchange = handlerFunction;
var handlerFunction = element.ondurationchange;

handlerFunction可以为null也可以是一个处理该事件的JavaScript方法

规范说明

Specification Status Comment
HTML Living Standard
ondurationchange
Living Standard

浏览器兼容

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
ondurationchangeChrome Full support YesEdge ? Firefox Full support 3.5IE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

其他