3 ms·
window.onload = function(){} Shouldn’t this be addEventHandler? Otherwise, you can only have a single onload callback, right?
by echoangle 2y ago
window.onload = function(){}
Shouldn’t this be addEventHandler? Otherwise, you can only have a single onload callback, right?
- marcosdumay 2y agoIt should be addEventHandler if you want to have more than one handler, yes. Otherwise, it's fine.