I've tried googling but I'm having trouble expressing what i'm asking.
There seem to be different ways to trigger events and I was wondering if there's a difference between them.
On way is for example:
window.onload=function(){headerAdjustWidth();thumbsArrange();checkHash();}
window.onscroll=function(){windowScrollStore();}
window.onresize=function(){headerAdjustWidth();thumbsArrange();windowScrollAdjust();showExpanded(false);}
window.onkeydown=function(){checkKeyboard();}
And another way is
<body onKeyDown="checkKeyboard();" onLoad="headerAdjustWidth();thumbsArrange();checkHash();" onScroll="windowScrollStore();" onResize="headerAdjustWidth();thumbsArrange();windowScrollAdjust();showExpanded(false);">
Are there any pros/cons to each so far?
The other thing is for the onload functions, is there any reason why I should/shouldn't just put them straight in a <script> thing? e.g:
<script type="text/javascript">
headerAdjustWidth();
thumbsArrange();
checkHash();
</script>
Finally, is there any reason why I should do window.onscroll=function(){windowScrollStore();} rather than window.onscroll=windowScrollStore?