X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

type Event Property

Event Object Reference Event Object

Example

Return the type of event that was triggered:

var x = event.type;

The result of x could be:

mousedown

Try it yourself »


Definition and Usage

The type event property returns the type of the triggered event.


Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
type Yes 9.0 Yes Yes Yes


Syntax

event.type

Technical Details

Return Value: A String, representing the type of the event
DOM Version: DOM Level 2 Events


Event Object Reference Event Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook