Forum Moderators: open
For anyone who has a largish javascript written into their HEADER, it's best to place it in an external file and call it into the header using <script type="text/javascript" src="whatever.js"></script>.
I know that javascript can also be placed in an external file to call into the BODY of a page because google ads do it.
I'm currently trying to take a javascript out of the body of an html page and call it from an external .js file. I keep getting scripting errors though.
Does anyone know how to do this?
Thank you,
Doug
For a better error message, try running it in a (real) browser.
A Mozilla browser may give you a better message from the Javascript console.
Comment out the whole script with a multi-line comment (/* */). Then shift the /* a few lines at a time until the error appears. This way, you'll narrow it down.