HBCMS更多的中文手册参考:

toElement参数属性

DHTML文档教程

Sets or retrieves a reference to the object toward which the user is moving the mouse pointer.

dhtml语法

event.toElement [ = oObject ]

DHTML可能的值

oObject Object that specifies or receives the object being moved to by the mouse.

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 toElement property to display the tagname of the object to which the user moves the mouse pointer.

<SCRIPT>
function fnGetTo(){
spanTo.innerHTML=window.event.toElement.tagName;
}
</SCRIPT>
:
<SPAN onmouseout="fnGetTo()">
<P>Mouse Over This</P>
<P>toElement: <SPAN ID="spanTo"></SPAN></P>
</SPAN>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

是否符合公共标准

There is no public standard that applies to this property.

Applies To

event