document.write ("
Here is the example that I am writing about. Nothing on this page is the result of words written in the document body. All of it is being referenced by the javascript call in the head of the page. What you see here is the javascript I wrote in a seperate text file. One of the advantages of doing this is that I can reference the same text file so that it can appear in a different document. This can be used to create files that will be consistent at the top or foot of your document. If you need to change anything, all that is needed is to make the changes in one text file and all the pages that reference that text file will have the pages reflect the new content.
") document.write ("For those of you using IE4 browsers or above, you can click view, then source, and you will see that nothing appears in the body and only one javascript reference appears in the head. Quite handy this method.
") document.write ("There is one drawback to this method. If the visitor has javascript disabled in their browser, they won\'t be able to view any additons made using this technique. Of course, with the javascript turned off, they won\'t be seeing a lot of the way you have designed your content to appear.
") document.write ("The primary purpose of course is so that you can include codes that do something in the page. Say if you wanted to show the current date at the head of all your pages. You could write out the script once in a text file and then call it from the head or body of the pages where you want this effect to occur.
") document.write ("view the text file itself")