Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
onmousedown event
onmouseout event
onmouseover event
onmouseup event
EVENT: onmousemove
onmousemove="action"
The
onmousemove
event is associated with moving the mouse around while inside a selected HTML tag (element). In other words, the mouse move event occurred while the HTML element was in focus. Every time you move the mouse around the element, the script code of the
onmousemove
is executed. This script can also call functions or subroutines that contain code that you want to run when this event occurs.
The five mouse events are:
onmousedown, onmousemove, onmouseout, onmouseover,
and
onmouseup
.
In this example, simply move the mouse inside on the
button
element.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>DevGuru XHTML onmousemove Tag Example</title>
</head>
<body>
<input type="button"
onmousemove="JavaScript
:
alert( 'onmousemove event' )"
value="Move The Mouse Inside This Button!" />
</body>
</html>
Output:
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information