type property

0 out of 1 rated this helpful - Rate this topic

Gets the name of an event.

Document Object Model (DOM) Level 3 Events Specification, Section 4.1

Syntax

JavaScript

p = object.type

Property values

Type: String

The name of the event, such as click or mouseover.

Standards information

Remarks

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.

See also

SVGZoomEvent
BeforeUnloadEvent
CompositionEvent
CustomEvent
Event
DragEvent
FocusEvent
KeyboardEvent
MessageEvent
MouseEvent
MutationEvent
StorageEvent
TextEvent
UIEvent
initEvent

 

 

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.