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?