mouseover
This page has been flagged with the following issues:
High-level issues:
Overview Table
| Synchronous | No |
|---|---|
| Bubbles | No |
| Target | dom/Element |
| Cancelable | No |
| Default action |
Examples
This example uses the onmouseover event to apply a new style to an object.
<p
onmouseover="this.style.color='red'"
onmouseout="this.style.color='black'">
Move the mouse pointer over this text to change its color. Move the pointer off the text
to change the color back.
</p>
View live exampleThis example shows how to change the value of a text area in response to mouse events.
<p>Move the mouse pointer into the text area to fire the onmouseover event. Move
it out to clear the text.
<textarea name="txtMouseTrack"
onmouseover="this.value='onmouseover fired'"
onmouseout="this.value=">
</textarea></p>
Notes
Remarks
The event occurs when the user moves the mouse pointer into the object, and it does not repeat unless the user moves the mouse pointer out of the object and then back into it. Initiates any action associated with this event. To invoke this event, do one of the following:
- Move the mouse pointer into an object.
Syntax
Standards information
- HTML 4.01 Specification, Section 18.2.3
Event handler parameters
- pEvtObj [in]
- Type: IHTMLEventObj
See also
Related pages (MSDN)
aabbracronymaddressappletareaaudiobbdobigblockQuotebodybuttoncanvascaptioncentercitecodecustomdddeldfndirdivdldocumentdtemembedfieldSetfontformhnhriimginput type=buttoninput type=checkboxinput type=fileinput type=imageinput type=passwordinput type=radioinput type=resetinput type=submitinput type=textinskbdlabellegendlilistingmapmarqueemenunoBRobjectolpplainTextpreqrtrubyssampselectsmallsourcespanstrikestrongsubsuptabletBodytdtextAreatFootthtHeadtrttuulvarvideowindowxmpSVGSVGElementReferenceonmousewheelonmousedownonmousemoveonmouseoutonmouseuponmspointerhoveronmspointerover
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]
This tool helps to make and review comments inline.
How to Use
insert instructions, with images, here