== .onBlur ==

.onBlur()

Attaches an event handler callback function to the “blur” event of an element.
Usage:
[[mdn>Web/API/HTMLElement|HTMLElement]] = Element.''onBlur''(callback)
Member of:
[[mdn>Web/API/HTMLElement|HTMLElement]]
Parameters:
callback – the function to call when the “blur” event occurs (required).
Returns:
The [[mdn>Web/API/HTMLElement|HTMLElement]] it was called on, thus allowing for command chaining.
Notes:
* This is just a shorthand function for the [[toolbox:event:on:index|.on]] method, specific for the “blur” event. See there for more information and examples. * The “blur” event handler can be attached to any [[mdn>Web/API/HTMLElement|HTMLElement]], but of course only makes sense for elements which are either naturally focusable (e.g. '''', '''', ''