Message from JavaScript discussions

September 2018

β€” Im on the rightπŸ˜…


Hello, I'm pretty new to javascript. I have this line of html that should call the onload after loading the element:

<div id="button" align="middle" onload="console.log('hello')"></div>

But it doesn't output anything to the console. Why? How can I fix it?

β€” I don't think onload works for every element

β€” Only body and img and certain others

β€” Ah, okay. Thank you a lot!

β€” Https://

β€” Https://

β€” Https://

β€” Meh, not large enough of a difference to even care

β€” Ye, cool. im designing callback object (with callback functions), so made those. first doesnt matter how to check, second shows that it (the callback) should be defined explicitly on the object (for better performance).

Message permanent page

β€” Https://

β€” Ha ha. now closure factory is faster in chrome🀀