JavaScript & jQuery Tutorials

JQ Home Right Arrow Objects Right Arrow event.type

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 Example go to Objects Objects   go 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:

Related Tutorials

jQuery Advanced Tutorials - Lesson 5 - The Event Object



 

go to jQuery home page jQ Home go to Objects Objects go to top of page Top