Hi.

Okay you know how you can do something like...


window.onload=function(){myFunction();}

in order to contain all you javascript in the head of your document??


Well why can't I seem to do...

document.getelementbyid('MyElement').onclick=function(){myFunction();}

??