event.typeS2C Home « Objects « event.type

Event description property.

Description

The event.type Event object property, contains the value of the description of the event.

Syntax


Signature Description
event.typeThe value of the description of the event.

Parameters

None.

Return

A String object.

event.type Examplego to top of page Top

Contains the value of the description of the event.

When we click the button below the first time a message is output displaying the description of the event type.



$(function(){
  $('#btn8').one('click', function(event) {
     $('#div6').append('Event type is: ' + event.type);
  });
});

div6. Some initial text.



Press the button below to action the above code:

go to home page Homepage go to top of page Top