This example demonstrates how you can use relatedTarget to find element you are going into after mouseout event.
Example One: Only the mouseout event is registered on this linkmouseout, mouseup, click and dblclick are registered inline the link below.
Example Two: click this link to see which events occur.
---Messages for both examples follow---