Make a web site - CD-31Chapter 5 .Scripts and HTML Documents dialog boxes
Sunday, July 22nd, 2007CD-31Chapter 5 .Scripts and HTML Documents dialog boxes turned off, error indications are displayed subtly at the left edge of the browser window s status bar. An alert icon and message ( Error on page. ) appear in the status bar. If you double-click the icon, the error dialog box appears (see Figure 5-1). Be sure to expand the dialog box by clicking the Show Details button. Unless you turn on script error dialog boxes and keep them coming, you have to train yourself to monitor the status bar when a page loads and after each script runs. Figure 5-1: The expanded IE error dialog box For NN 4.07 and later, the status bar is also your first indication of a script error. A message appears in the status bar that instructs you to go to the location javascript: to see the error details. Viewing the details of the error requires different steps, depending on the Navigator version. For NN 4.07 and all subsequent 4.x versions, choose File . Open and enter javascript: For NN6, choose Tasks . Tools . JavaScript Console. The JavaScript console window (a separate window from the Java console) opens to reveal the error message details (see Figure 5-2). You can keep this window open all the time if you like. Unless you clear the window, subsequent error messages are appended to the bottom of the window. Understanding error messages and doing something about them is a very large subject, reserved for advanced discussion in Chapter 45. During this tutorial, however, you can use the error messages to see if you have perhaps mistyped a script from a listing in the book.
In case you need quality webspace to host and run your web applications, try our personal web hosting services.