onmouseover="action"
Available in versions: 4.0
HTML 4.0 tag compatibility: All tags except applet, base, basefront, bdo, br, font,
frame, frameset, head, html, iframe, isindex, meta, param, script, style, title
The onmouseover core attribute is an event handler that is associated with moving
the mouse over a selected HTML tag (element).
In other words, the mouse over event occurred while the HTML element was in focus.
Every time you move the mouse over the element, the script code of the onmouseover is executed.
This script can also call functions or subroutines which contain code that you want
to run when this event occurs.
The four other similar core attributes are: onmousedown, onmousemove, onmouseout, and
onmouseup.
In this example, simply move the mouse over on the button element.
As soon as you move over, an alert is displayed with a message.
Code:
<input type="button" onmouseover="JavaScript: alert( 'onmouseover event' )"
value="Move The Mouse Over This Button!">
Output:
Copyright 2000 by Infinite Software
Solutions, Inc.
Trademark Information
|