![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
x[1].onclick = callMe; ... - so that it will be executed as a method of the Element, or use a closure[1] to associate the element with a - function:- function getOnclickReportFnc(element){ return (function(){ alert(element.nodeName); ]); ^ |
|
} snip |
#2
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |