References

Collection of references for web development.

HTML onmousemove event

Description

Execute JavaScript code when the user moves the mouse on the element.

Example

<div style="height:180px;border:1px solid green;" onmousemove="document.getElementById('txt').style.top = event.pageY + 'px', document.getElementById('txt').style.left = event.pageX + 'px'">
	<span id="txt" style="position:absolute;">Following Text</span>
</div>