Javascript: Forms.Events Enumeration
Description
Names of DOM events raised by form fields.
Members
| Member | Description |
|---|---|
| Focus | Occurs when an element gets focus. |
| Blur | Occurs when an element loses focus. |
| Change | Occurs when the element loses focus, after the content has been changed. |
Examples
The following example applies Forms.Events in a practical Document Viewer workflow.
function handleFormChange(event) {
console.log("Form field changed:", event.target);
}
TXDocumentViewer.forms.addEventListener("change", handleFormChange);