How to tell JavaScript to execute a function after an element has been loaded w/out any external library?
Normally I have to bring the <script> tag after the element itself to work with DOM calls.
How to tell JavaScript to execute a function after an element has been loaded
Share
Well you can utilize the
document.onloadandwindow.onloadmethodsFor example: