Q:

Event 'load' doesn't work on JavaScript

I try to put an event on document loading but not works...
I'd put an alert box, but never seen it...
document.addEventListener ("load",initEventHandlers,false);

function initEventHandlers ()
{
document.getElementbyId ('croixzoom').addEventListener ('click',fermezoom,false);
alert ("Hello, i\'m a eventHAndlers")   
}
function fermezoom (){
document.getElementbyId ('zoom').style.visibility = 'hidden';
document.getElementbyId ('fondzoom').style.visibility = 'hidden';
}

Thanks for you help

A:

The document does not have an onload / load event, try attaching it to 'window':
window.addEventListener ("load",initEventHandlers,false);

