How do you add an onload event to an element?
Can I use:
for t
I needed to have some initialization code run after a chunk of html (template instance) was inserted, and of course I didn't have access to the code that manipulates the template and modifies the DOM. The same idea holds for any partial modification of the DOM by insertion of an html element, usually a Some time ago, I did a hack with the onload event of a nearly invisible Update(Jul 15 2017) -
The To minimize the visual impact and resource usage of the image, use an inline src that keeps it small and transparent. One comment I feel I need to make about using a I believe it is necessary to settle for using an contained in a onload is not supported in last version of IE. Edge does support it, but some users see this as a different browser and stick with IE. The element seems to work better across all browsers.
...
is how much harder it is to determine which element cannot determine its own DOM location reliably; a reference to 'this' points to the main window, and is of no help.
element, despite being goofy. This might be a hole in the DOM/javascript framework that could use plugging.