window.captureEvents(Event.CLICK);
window.onclick= handle;
function handle(e) { alert("The window object captured this event!"); return true; // i.e. follow the link }
Click on this link