Look at the following code:
window.onload = someFunction;
Many times I see the use of this kind of code and even I use the same. But, there
In JavaScript, parentheses do matter. In your case, you are assigning the function object itself to a certain slot of window. When putting the parentheses, you explicitly call the function, thus the value of someFunction() is the returned value of the function, not the function object itself. In short :
A special case is someVar = new someConstructor; which should not be used generally, and does not follow my short explanation above. For a very good explanation of function, and that particular statement above, see the wonderful book by Douglas Crockford Javascript, the Good Parts.