This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

type

Summary

Gets the name of an event.

Property of dom/Eventdom/Event

Syntax

Note: This property is read-only.

var eventType = event.type;

Return Value

Returns an object of type StringString

The name of the event.

Notes

The type property of the event depends on the event. This property can be a standard event type, or it can be a custom user-defined event that you created by using the createEvent and initEvent methods.

Related specifications

DOM Level 3 Events
Working Draft

See also

Related pages

Attributions