event.type
Categories: Event Object
event.typeReturns: String
Description: Describes the nature of the event.
-
event.type
version added: 1.0
-
On all anchor clicks, alert the event type.
Code:
$("a").click(function(event) { alert(event.type); // "click" });