Quote:
Originally Posted by TwoD
Remove the parenthesis. You're calling the function and assigning its return value to onclick, instead of assigning it the function reference itself.
|
Actually, I tried that earlier but couldn't get that to work either. I also tried 'addListener', and a couple of other variations with no luck.