JavaScript » Event » type

Syntax:
event.type

This property returns a string that represents the type of the event (click, key down, etc.).