Name

type — NN 4 IE 4 DOM n/a

Synopsis

Read-only

The type of the current event (without the “on” prefix). Values are all lowercase.

Example

// NN
if (evtObj.type ==  "change") {
    ...
}
// IE
if (event.type ==  "change") {
    ...
}

Value

Any event name (without the “on” prefix) as a string.

Default

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.