Example

Show which event type was triggered:

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

Try it yourself »

Definition and Usage

The type property specifies which event type was triggered.

Syntax

event.type

Parameter Description
event Required. Specifies the event to check. The event parameter comes from the event binding function