-
Step 1
The first step is to create a javascript file. Open notepad or some other text editor and create a simple function. Then save the file as "myfirstjavascript.js". Make sure it has the .js extentions. Take a look at the picture associated with this step for the sample javascript function.
-
Step 2
With our sample javascript file in place we now have something to include in our html document. At the very top of your html document write the code that is shown in the picture associated with this step. eHow does not allow javascript code within steps.
-
Step 3
Now anywhere within your HTML document you can make a call to the functions and code within that external javascript file. Using external javascript files makes it much easier to reuse code through various HTML pages without writing the same code over and over.








