HTML onmouseout event Attribute

❮ HTML Event Attributes


<img onmousemove="mouseMove(this)" onmouseout="mouseOut(this)" src="smiley.png" alt="Smiley">


The onmouseout attribute specifies the script run when the mouse pointer moves out of an element.

Standard Syntax

<element onmouseout="script">

Browser Support


Attribute Values

Value Description
script Specifies the script to be run on onmouseout

Technical Details

Supported HTML elements:

All HTML elements, EXCEPT: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>
❮ HTML Event Attributes