Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery event.type property

jQuery event.type property

jQuery event methods jQuery event methods

Example

Return which event type was triggered:

$("p").on("click dblclick mouseover mouseout",function(event){

$("div").html("Event: " + event.type);

});

Try it »


Definition and Usage

The event.type property returns which event type was triggered.


Syntax

event

.type

Parameters Description
event Required.event The parameters come from the event binding function.

jQuery event methods jQuery event methods