I want to run a function when the page is loaded, but I don’t want to use it in the tag.
I have a script that runs if I initialise it in th
window.onload = codeAddress; should work - here's a demo, and the full code:
window.onload = codeAddress;
Test