Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
echoangle
· 2y ago · 0 comments
window.onload = function(){}
Shouldn’t this be addEventHandler? Otherwise, you can only have a single onload callback, right?
Comments
[–]
marcosdumay
2y ago
It should be addEventHandler if you want to have more than one handler, yes.
Otherwise, it's fine.