GlobalEventHandlers.onpause
概述
onpause
可以用来获取或设置当前元素的onpause
事件的事件处理函数。当媒体播放被暂停时,将触发 pause 事件。
语法
element.onpause = handlerFunction; var handlerFunction = element.onpause;
handlerFunction 应该是 null 或指定事件的 JavaScript 函数。
说明
Specification | Status | Comment |
---|---|---|
HTML Living Standard onpause |
Living Standard |
浏览器兼容性
No compatibility data found for api.GlobalEventHandlers.onpause
.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.