A string that specifies the event type.
Description
The following form control event types are currently supported in MetaScript 2.0:
Event Type | Description |
---|---|
"onclick" | the form control was clicked. |
MetaScript code should not depend on the availability of only the above event types, as more event types may be added in the future.
Example
The below code illustrates the use of the Event.type property in an event listener (assume that the form that has a button control with ID "button"):