type Event Property

Return the type of event that was triggered

Definition and Usage

The type event property returns the type of the triggered event.

Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
type Yes 9.0 Yes Yes Yes

Syntax

event.type

Technical Details

Return Value: A String, representing the type of the event
DOM Version: DOM Level 2 Events