Search code examples
javascripthtmlonblur

Does HTML 'body' tag have an onblur event?


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?


Solution

  • The HTML4 specification does not list the onblur attribute.

    The HTML5 draft on the other hand does.