阅读(4834) (17)

window属性:onchange

2018-04-24 10:43:30 更新

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
基本支持?????????