PRB: document_onmouseout Fires When Mouse is Over HTML Form (185374)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 4.01
This article was previously published under Q185374 SYMPTOMS
The document_onmouseout event fires when the mouse moves over HTML
formatted text, such as the example below although the mouse is still
within the confines of the document:
<B>This is text</B>
Expected Behavior: The document_onmouseout event should only fire when the
mouse leaves the document.
CAUSE
The onmouseover and onmouseout events fire based on the element that the
mouse is over. When we go from the body (plain text) to a bold (or anything
else), then we "leave" being over the document and are now over the bold
object. For this reason, the onmouseout event fires for the <BODY> tag.
STATUS
This behavior is by design.
REFERENCESFor more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Modification Type: | Major | Last Reviewed: | 5/11/2006 |
---|
Keywords: | kbprb KB185374 |
---|
|