Name
The DOMFocusIn and DOMFocusOut Events
Synopsis
Event type: (From DOM Level 2 Events) |
Event target element: form control, possibly other elements such as hyperlinks |
Bubbles: Yes |
Cancelable: No |
These two events serve as notifications of receiving and losing focus, respectively. In XForms, they are mainly useful as a way of tracking and coordinating focus changes on form controls.
Even though a DOM isn’t guaranteed to be present in an XForms engine, this event will always work as described here.
Get XForms Essentials 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.