Gets the object that the mouse pointer entered.
HRESULT IDOMMouseEvent::get_toElement(IHTMLElement **p);
- Address of a pointer to a variable of type IHTMLElement interface that receives the current object.
Returns S_OK if successful, or an error value otherwise.
You can use the toElement 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.