TX Text Control .NET Server

Javascript: Forms.Events Enumeration

Enumeration

Description

Names of DOM events raised by form fields.

Members

MemberDescription
FocusOccurs when an element gets focus.
BlurOccurs when an element loses focus.
ChangeOccurs 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);