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

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

Example One: Only the mouseup 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 mousedown before entering object and then release mouse, only the mouseup event occurs.

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


---Messages for both examples follow---