六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 19|回复: 0

IE与FireFox的onchange事件

[复制链接]

升级  66%

9

主题

9

主题

9

主题

童生

Rank: 1

积分
33
 楼主| 发表于 2013-2-7 17:15:28 | 显示全部楼层 |阅读模式
今天在我的项目中发现一个问题,在IE中,单选框的onchange事件是在控件失去焦点时才触发的,因为之前一直用firefox,在FF中是在点击的当时就触发的onchange事件,第一想法就是:IE真是不如FF,接着我又查看了一下HTML 4.01标准是怎么描述onchange的,在HTML 4.01中是这样描述onchange的:“The onchange event occurs when a control loses the input focus and its value has been modified since gaining focus. This attribute applies to the following elements:INPUT,SELECT, and TEXTAREA.”
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表