I am having trouble with the window.onload and document.onload events. Everything I read tells me these will not trigger until the DOM is fully loa
window.onload
document.onload
Have you tried using a javascript library instead, e.g. jQuery and it's $(document).ready() function:
$(document).ready()
$(document).ready(function() { // put all your jQuery goodness in here. });