jQuery Event - type Attribute

Example

Show which type of event was triggered:

$("p").bind('click dblclick mouseover mouseout',function(event){
  $("div").html("Event: " + event.type);
});

Try It Yourself

Definition and Usage

The type attribute describes which type of event is triggered.

Syntax

event.type
Parameter Description
event Required. Specifies the event to be checked. This event Parameters come from the event binding function.