event.type

event.typeReturns: String

Description: Describes the nature of the event.

  • version added: 1.0event.type

Example:

On all anchor clicks, alert the event type.

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

© The jQuery Foundation and other contributors
Licensed under the MIT License.
https://api.jquery.com/event.type