VirtualMV/JavaScript/Starting/Basics

Code placement

 * JavaScript can be inserted into the HEAD or BODY section of a document.
 * If code is to be reused within a page then it is better to place the code in the HEAD section.
 * Code in the HEAD section is loaded before the page is built and any referrals within a page are already in memory.
 * Code within the page must be loaded into memory before execution.

Browser Handling

 * Older style browsers may not handle JavaScript
 * Browsers such as Internet Explorer warn you that running scripts from your local hard drive is a security risk
 * To trick the browser we enclose the JavaScript code between a &lt;!-- and //-->


 * The older browser then ignores all code between the start and end tags
 * You may come across JavaScripts inserted as

This has now be deprecated and the following format should be used:

JavaScript (js1_02)
Example :.