syntax question re calling function in an object
It seems that when the funtion is a method inside of an object you leave out the parenthesis - quoting from page 108 of the book I see:
link.onclick = wikipediaLink.clickHandler;
link.onclick = wikipediaLink.clickHandler();
Am I correct and can anyone explain why?
Many thanks for any clarification.