The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Where to place Javascript? Re: Where to place Javascript?

Rob MacKay

I would always put it in the head myself – although some people like to add it to the end of the document, others just before the item that is using the script. You can add it anywhere you want. :)

EDIT: As long as you put it between the <script> tag :)