I have a function:
// do some things
In my html page I run this function onLoad:
If I put this function in my <head><script> section right in the html page as shown,it works fine. If I try to put it in an external script file:
It doesn't work and I get an 'object not found' message indicating the <body> line. What's up? Please note that I have other scripts in external files and they work fine, just not this one. Is a script not permitted to be external if called from the <body> tag?