Gets the object that the mouse pointer exited.
HRESULT IDOMMouseEvent::get_fromElement(IHTMLElement **p);
- Address of a pointer to a variable of type IHTMLElement interface that receives the previous object.
Returns S_OK if successful, or an error value otherwise.
You can use the fromElement property for onmouseenter, onmouseleave, onmouseover, and onmouseout events. For example, during an onmouseover event, the fromElement property gets the element that the mouse pointer has exited, and the toElement property gets the element that the mouse pointer has entered.
You can also use the 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.