codecamp

window属性:onchange

onchange属性

该onchange属性可设置并返回change事件的事件处理程序。

onchange属性语法

element.onchange = handlerFunction;
var handlerFunction = element.onchange;

handlerFunction应该是null或者是指定事件处理程序的JavaScript函数。

规范

规范状态注释
HTML Living Standard
中'onchange'的定义。
Living Standard
 

浏览器兼容性

我们正在将兼容性数据转换为机器可读的JSON格式。

  • 电脑端
特征Chrome
Edge
Firefox(Gecko)
Internet Explorer
Opera
Safari(WebKit)
基本支持支持支持? 
  • 移动端

特征AndroidAndroid WebviewChrome for AndroidEdgeFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
基本支持?????????
window属性:onblur
window属性:onclick
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定