type Property
Gets or sets the event name from the event object.
Syntax
[ sType = ] object.type
Possible Values
sType String that specifies or receives the event name. The property is read/write. The property has no default value.
DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are supported in IE7 Standards mode and IE5 (Quirks) mode only. For more information, see About Dynamic Properties and Defining Document Compatibility.
Remarks
The property is read-only in Microsoft Internet Explorer 4.0, and read/write in Internet Explorer 5 and later.
Events are returned without the "on" prefix. For example, the onclick event is returned as "click".
Standards Information
This property is defined in Document Object Model (DOM) Level 1.
Applies To
event, Event Constructor