HTML'body'标签是否有onblur事件? [英] Does HTML 'body' tag have an onblur event?

查看:230
本文介绍了HTML'body'标签是否有onblur事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将 onblur 事件绑定到< body> 标记,并且它在IE 6 / 8。

然而,当我转向 w3schools ,事实证明< body> 标记没有 onblur 事件。

任何人都可以解释这一点吗? HTML4规范没有列出 onblur 属性。



HTML5草稿另一方面。


I tried to bind the onblur event to a <body> tag and it works in IE 6/8.

However, when I turn to w3schools, it turns out that the <body> tag doesn't have an onblur event.

Can anyone explain this?

解决方案

The HTML4 specification does not list the onblur attribute.

The HTML5 draft on the other hand does.

这篇关于HTML'body'标签是否有onblur事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆