Event 'load' doesn't work on JavaScript -


I try to create an event on loading the document but does not work ... I had put a warning box But never seen it ...

  document.addEventListener ("load", initEventHandlers, incorrect); Function initEventHandlers () {document.getElementbyId ('croixzoom'). AddEventListener ('Click', Fermazoom, False); Warning ("Hello, I'm an Event Hudders")} FirmZoom () {document.getElementbyId ('Zoom'). Style.visibility = 'hidden'; Document.getElementbyId ('fondzoom'). Style.visibility = 'hidden'; }  

Thank you for

The document does not contain an onload / Load event, try to attach it to 'window':

  window.addEventListener ("load", initEventHandlers, false);  

Comments