Possible Duplicate:
In JavaScript, does it make a difference if I call a function with parentheses?
what is the difference between this:
$("a").on("click", anotherFunction);
and this:
$("a").on("click", anotherFunction());
And is there a way to not make the last one self executable without anonymous function?
The first one passes the actual function; the second passes the returned value of the function.
I’m unclear on the meaning of your final question.