refer to http://www.w3schools.com/JS/default.asp
1,
Use html comments "<!-- -->" around scripts to prevent browsers from printing the scripts directly when the <script> are missed.
2,
JavaScripts in the body section will be executed WHILE the page loads.
JavaScripts in the head section will be executed when CALLED.
3,
The external scripts cannot contain the <script> tag.