Непрофессиональное введение в JAVASCRIPT

       

Click


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


window.captureEvents(Event.CLICK);

window.onclick= handle;

function handle(e) { document.links[1].handleEvent(e); }

Click on this link

Second link


Содержание раздела