Returns the component located at the specified coordinates via certain events.
retVal = object.componentFromPoint(x, y);
- x [in]
Specifies the client window coordinate of x.
- y [in]
Specifies the client window coordinate of y.
There are no standards that apply here.
The IHTMLElement2::componentFromPoint method, available as of Microsoft Internet Explorer 5, is applicable to any object that can be given scroll bars through Cascading Style Sheets (CSS).
The IHTMLElement2::componentFromPoint method might not return the same object consistently when it is used with the HTMLFrameSiteEvents::onmouseover event. Because a user's mouse speed and entry point can vary, different components of an element can fire the HTMLFrameSiteEvents::onmouseover event. For example, when a user moves the cursor over a textArea object with scroll bars, the event might fire when the mouse enters the component border, the scroll bars, or the client region. After the event fires, the expected element might not be returned, unless the scroll bars were the point of entry for the mouse. In this case, the HTMLFrameSiteEvents::onmousemove event can be used to provide more consistent results.