onmousemove Event
Event Object
Definition and Usage
The onmousemove event occurs when the mouse pointer is moved.
Syntax
|
onmousemove="SomeJavaScriptCode"
|
| Parameter |
Description |
| SomeJavaScriptCode |
Required. Specifies a JavaScript to be executed when the
event occurs. |
Supported by the following HTML tags:
|
<a>, <address>, <area>, <b>, <bdo>, <big>, <blockquote>,
<body>, <button>, <caption>, <cite>, <code>, <dd>, <dfn>, <div>,
<dl>, <dt>, <em>, <fieldset>,
<form>, <h1> to <h6>, <hr>, <i>,
<img>, <input>, <kbd>, <label>, <legend>, <li>,
<map>, <ol>, <p>, <pre>,
<samp>, <select>, <small>, <span>, <strong>, <sub>, <sup>, <table>, <tbody>,
<td>, <textarea>, <tfoot>, <th>, <thead>, <tr>, <tt>, <ul>, <var>
|
Supported by the following JavaScript objects:
onmousemove is, by default, not an event of any object, because mouse
movement happens very frequently.
|
Tips and Notes
Note: Each time a user moves the mouse one pixel, a mousemove event
occurs. It takes system resources to process all mousemove events. Use this
event carefully!
Example
Example
In the following example we will display an alert box when the user moves the
mouse pointer over the image:
<img src="image_w3default.gif" alt="W3Schools"
onmousemove="alert('Visit W3Schools!')" />
|
Try it yourself »
|
Event Object

Need an easy way to get data into XML, or transform XML to another format?
MapForce lets you map XML data to/from any combination of XML, database, flat file,
Excel 2007, XBRL, or Web services data. Then it transforms data instantly or
auto-generates royalty-free code for recurrent conversions.
New features in Version 2010!
- Easy-to-use, graphical data mapping interface
- Instant data transformation
- XSLT 1.0/2.0 and XQuery code generation
- Java, C#, and C++ code generation
- Advanced data processing functions
- Support for all major relational databases including SQL Server, IBM DB2, Oracle, and more
- Visual Studio & Eclipse integration
- Available in 32-bit and 64-bit versions
Download a fully-functional trial today!
|
|
|
|