Chapter 1
Page Location Edit
7 Second tip Replace the last sentence in the tip with : "However, this text primarily uses uppercase letters for HTML tags."
14 Second tip Replace the second to last sentence with: "Java application programs run independently of a browser whereas Java applets typically run within the browser."
19 Second sentence Replace with: "Initially, we will study JavaScript programs where the statements that make up the program in an HTML document are contained between the <SCRIPT>...</SCRIPT> tag pairs."
21 Fourth paragraph, last sentence  Replace with: "Unlike standard HTML text, the write() and writeln() methods can display the values of variables, functions, and other entities which will be discussed later in this book.  Thus the text that is added to the HTML document will change if these values change.  However, the write() and writeln() methods cannot add new text to an HTML document after the browser has finished rendering the document.  Trying to do so will overwrite the entire contents of the document.  
22 Figure 1-13 Replace <SCRIPT LANGUAGE="JavaScript1.2"> with <SCRIPT LANGUAGE="JavaScript"> Rationale for change: Specifying a language version means that browsers unable to execute that version of JavaScript will skip all statements between the <SCRIPT>...</SCRIPT> tags.  There is no reason to specify a language version unless you are using a particular language feature which is not supported in the earliest version of JavaScript.  [Note: This comment applies to the numerous subsequent code examples which specify a language version.]
25 Both code samples on page Replace  SRC="c:\javafiles\samplessourcefile.js" with a relative reference.  References to the c: drive will not work once the file is on the server, as opposed to a PC.  The same problem exists in Figure 1.18
26 Second bullet that begins "JavaScript source files..." Delete this bullet -- Rationale for change: The address of the external JavaScript source file can be obtained by viewing the source of the file which references the source file.  If the address is specified in absolute terms, it can be copied and pasted directly into the location bar of Internet Explorer.  If specified in relative terms (which is more usual), one can easily figure out the absolute address of the source file.  Once the address is in the location bar of IE, hitting Enter will give you an opportunity to download the file (and thus view it later in an editor such as Notepad).
28 Step 3 javaScriptSource.js should be all lowercase: javascriptsource.js
32 Figure 1-23 Place two slashes before the statement that reads "This line ends ..." The new statement should read "// This line ends ..."  [Note: the same comment applies to subsequent code samples in the book] Rationale:  For browsers than understand JavaScript, the line comment (//) tells these browsers to treat the line as a comment and not as JavaScript statements.  For browsers that do not understand JavaScript, the // is ignored but the whole block is treated as an HTML comment due to the beginning <!-- and closing -->.  If no comment is made on the last line of a block of JavaScript statement, one should use // --> rather than simply --> due to browser differences between Netscape and Internet Explorer.

Last Modified August 18, 2001. The source of some of these corrections is the updates page for the Gosselin text on the instructor portion of the Course Technology web page.   Comments to William Pegram, wpegram@nvcc.edu