type event attribute

Definition and Usage

type event attribute returns the type of the event triggered.

Instance

Return triggeredEvent Type:

var x = event.type;

Try It Yourself

Syntax

event.type

Technical Details

Return Value: A string value that represents the type of the event.
DOM Version: DOM Level 2 Events

Browser Support

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

Properties Chrome IE Firefox Safari Opera
type Support 9.0 Support Support Support