Example #1: Demonstrates onmousedown in link using recommended technique for registering events

This example demonstrates some of the info that can be returned onmousedown event.

Example One: Only the mousedown event is registered on this link


Example #2: Using In-line javascript is simplier, but blurs structure and behavior

Mousedown, mouseup, click and dblclick are registered inline the link below. Mousedown and mouseup are more precise than click because if you only mousedown while on the link and then move off of link to release mouse, only the mousedown event occurs.

Example Two: click this link to see which events occur.


---Messages for both examples follow---