Is there a difference between:
window.onload = someFunction;
window.onload = someFunction();
Th
Yes. If you put window.onload = someFunction() it is expected that the result of someFunction() is another function. This could be used for wrapping a function, or passing parameters. For instance:
window.onload = myFunction(arg1, arg2)
myFunction(arg1, arg2) would be expected to return some function incorporating these two variables.