Name

The xforms-focus Event

Synopsis

Event type: interaction
Event target element: form control
Bubbles: No
Cancelable: Yes

This event causes focus to change to the target form control. Unless you have a specific reason for not using the XForms Action setfocus, this event is generally not needed by form authors. For notifications of focus changing, DOMFocusIn and DOMFocusOut are the best way to keep tabs on focus.

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.