Hi guys,

This is probably the most ridiculously dumb question ever posted on this Javascript forum, but I'm really at a bit of a loss. I currently have the following code to hide a div:

Code JavaScript:
function hide(element){
	element.style.position = 'absolute';
	element.style.left = '-4000px';
}
Very simple, yet effective and lightweight so I'm fine with it.

If I call it using onclick with the following code, it works fine:
Code JavaScript:
onClick="hide(specific)"

Yet, at the top of my page I have this, which isn't activating at all for some reason:
Code JavaScript:
window.onload = hide(general);

The problem isn't with the window.onload bit, because I've tested it with an alert, nonetheless it isn't activating the hide function and I can't understand why