bigdave
Well-Known Member
I've got a free(ish) day today so I thought it might be a nice idea to start looking at javascript. I'm using W3School as a starting point but 1 chapter in, I'm already coming across questions that the site doesn't seem to answer.
Can anyone explain the difference/benefits/disadvantages of javascript in the head, body and external files. I know there must be instances where the different methods of implementing script are necessary but W3School doesn't seem to go into any kind of detail as to what those are.
*EDIT*
I'm assuming that external .js is useful in the same way as external stylesheets in that one file can manipulate an entire site rather than just individual pages.
Can anyone explain the difference/benefits/disadvantages of javascript in the head, body and external files. I know there must be instances where the different methods of implementing script are necessary but W3School doesn't seem to go into any kind of detail as to what those are.
*EDIT*
I'm assuming that external .js is useful in the same way as external stylesheets in that one file can manipulate an entire site rather than just individual pages.