event.type

jQuery

event.type


event.type Returns: String

Description: Describes the nature of the event.

  • version added: 1.0event.type

Example:

On all anchor clicks, alert the event type.

1
2
3
                                  
$("a").click(function(event) {
alert(event.type); // "click"
});