Where to Place Your JavaScript Code

By: Dusty Arlia
Published on June 28, 2012
Last Updated on Friday, May 31, 2013, 11:01 PM
Total Updates: 4

When adding JavaScript to your webpage, you have three different options for the location of your code:

  1. Inside the <head> section
  2. Inside the <body> section
  3. Using an external JavaScript file