Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

onmouseout event

onmouseout event

Event Object Reference Event Object

Example

Execute JavaScript code when the mouse pointer moves out of the specified object:

Smiley

Try it »


Definition and Usage

The onmouseout event occurs when the mouse pointer moves out of the specified object.

Syntax

In HTML:

<

element

onmouseout="

SomeJavaScriptCode

">

In JavaScript:

object

.onmouseout=function(){

SomeJavaScriptCode

};

Parameters Description
SomeJavaScriptCode Required. Specifies the JavaScript to be executed when the event occurs.

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the onmouseout event


HTML tags that support this event:

The onmouseout attribute can be used on HTML elements, except: , ,
, , ,