property type

(r/o) string type;

Typ

Zugriff

This property returns the type of the event.
var eventType = eventObj.type;
if (type == "mouseDown")
{
    ...
}