HBCMS更多的中文手册参考:

srcElement参数属性

DHTML文档教程

Sets or retrieves the object that fired the event.

dhtml语法

event.srcElement [ = oObject ]

DHTML可能的值

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.

DHTML代码范例

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">
function selectWord() {
var oSource = window.event.srcElement ;
if (!oSource.isTextEdit)
oSource = window.event.srcElement.parentTextEdit;
if (oSource != null) {
var oTextRange = oSource.createTextRange();
oTextRange.moveToElementText(window.event.srcElement);
oTextRange.collapse();
oTextRange.expand("word");
oTextRange.select();
}
}
</SCRIPT>

是否符合公共标准

There is no public standard that applies to this property.

Applies To

event