Event.type

Event.type

A string that specifies the event type.

Property of

Event

Read-only

 

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"):

See also

Button.addEventListener

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.