How can I run a JavaScript code when the page loads without using the onload tag?
onload
I\'m trying to run this script:
Note that commands outside of functions in a script tag in the header run when the page loads. I don't know if this is actually equivalent to running functions explicitly onLoad via the body tag attribute, but it is tantamount to the same thing.