I’m trying
document.addEventListener('load', handler)
in Chrome 46 and Firefox 42, and it’s not working. I can get it to work if I try it on window
, as in
window.addEventListener('load', handler)
The MDN documentation for the “load” event says
Target: Document, Element
So why doesn’t it work on the document? Do the docs need to be updated?