Home | Top | Website design | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets or retrieves the object that fired the event.
Syntax
event.srcElement [ = oObject ]Possible Values
oObject | Object that specifies or receives the event that fired. |
The property is read/write. The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties .
Remarks
The property is read-only in Microsoft® Internet Explorer 4.0, and read/write in Internet Explorer 5 and later.
Example
This example uses the srcElement property to retrieve the parent object, if needed, create the text range, move to the original object, and select the first word in the object.
<SCRIPT LANGUAGE="JScript">
Standards Information
There is no public standard that applies to this property.
Applies To
|
event |
Home | Top | Website design | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |