Handling Window Events: onload
Handling Window Events: onresize
Handling Window Events: onfocus
Handling Window Events: onblur
Mouse Event Handling: onmousedown
Mouse Event Handling: onmousemove
Mouse Event Handling: ondblclick
Form Event Handling: onblur
Form Event Handling: onfocus
Key Event Handling: onkeydown
To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.
See it run: Mouse Event Handling: onmousemove
This is the HTML for the following-eyes example.
This is the CSS for the following-eyes example.
This JavaScript allows you to keep the pictures of the eyes following the mouse cursor.