Why am I getting an error for this piece of code?:
function catchevent() { eventSrcID=(event.srcElement)?event.srcElement.id:\'undefined\'; eventty
you forgot to pass event in parameters.
function catchevent(event) { eventSrcID=(event.srcElement)?event.srcElement.id:'undefined'; eventtype=event.type; status=eventSrcID+' has received a '+eventtype+' event.'; }