Possible Duplicate:
In JavaScript, does it make a difference if I call a function with parentheses?
This may sound very basic, but I really don't understand.
I try to take () off from an event handler and it cause a bug in my JavaScript webpage, what is the difference between putting and not putting () at the end when calling a function.
My example is:
document.getElementById("searchField").onkeyup = searchSuggest;
when I changed to searchSuggest(), my function was not working.
Can anyone please explain to me? If I make any part unclear, please ask, thank you.