type property (event)
Retrieves a string that represents the type of the event, such as "mouseout", "click", etc.
This property can be useful when the same handler function is registered for different type of events. In that case, the type property helps to identify what type of event has occurred.
You can find the related objects in the Supported by objects section below.
This property is read/write.
String that represents the type of the event.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the type property:
Did you find this example helpful?
User Contributed Comments