Event JavaScript Tutorial

< html>



function writeX(evnt) {
   document.write("Capturing" + evnt.target + " " + evnt.currentTarget);
   return true;
}
function setup(evnt) {
   document.addEventListener('click',writeX,true);
   document.forms[0].addEventListener('click',writeX,true);
   document.forms[0].elements[0].addEventListener('click',writeX,true);
}
setup();