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
- SVGZoomEventSVGZoomEvent
- BeforeUnloadEventBeforeUnloadEvent
- CompositionEventCompositionEvent
- CustomEventCustomEvent
- DragEventDragEvent
- EventEvent
- FocusEventFocusEvent
- KeyboardEventKeyboardEvent
- MessageEventMessageEvent
- MouseEventMouseEvent
- MutationEventMutationEvent
- StorageEventStorageEvent
- TextEventTextEvent
- UIEventUIEvent
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]