IE与FireFox的onchange事件
今天在我的项目中发现一个问题,在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.”
页:
[1]