Problems running code onload
Very simple, yet effective and lightweight so I'm fine with it.
element.style.position = 'absolute';
element.style.left = '-4000px';
If I call it using onclick with the following code, it works fine:
Yet, at the top of my page I have this, which isn't activating at all for some reason:
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 :(