Name
Input.onblur: the handler invoked when a form element loses focus â DOM Level 0
Synopsis
Function onblur
Description
The onblur
property of an
Input object specifies an event-handler function that is invoked
when the user or the program transfers keyboard focus away from that
input element. Calling blur( )
to
remove focus from an element invokes onblur
for that element. Note also that
calling focus( )
to transfer
focus to some other element causes the onblur
event handler to be invoked for
whichever element currently has the focus.
See Also
Element.addEventListener(
)
, Window.onblur
; Chapter 17
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.