Export (0) Print
Expand All

fromElement property

Gets the object that the mouse pointer exited.

Internet Explorer 9

Syntax

HRESULT value = object.get_fromElement(IHTMLElement** p);

Property values

Type: Object

The previous object.

Standards information

There are no standards that apply here.

Remarks

You can use the IDOMMouseEvent::fromElement property for HTMLFrameSiteEvents::onmouseenter, HTMLFrameSiteEvents::onmouseleave, HTMLFrameSiteEvents::onmouseover, and HTMLFrameSiteEvents::onmouseout events. For example, during an HTMLFrameSiteEvents::onmouseover event, the IDOMMouseEvent::fromElement property gets the element that the mouse pointer has exited, and the IDOMMouseEvent::toElement property gets the element that the mouse pointer has entered.

You can also use the IDOMMouseEvent::relatedTarget event property to indicate the previous object in mouse transition events. In general, the IDOMEvent::target attribute always refers to the object that raised an event.

See also

Reference
IDOMMouseEvent::relatedTarget
IDOMMouseEvent::toElement

 

 

Community Additions

ADD
Show:
© 2014 Microsoft