- Creating Our First Script
- Dissecting Our First Script
- Viewing Script Errors
- Browser Object Properties, Methods, and Events
- Handling Cross-Browser Programming Issues
Viewing Script Errors
For example, what if we had misspelled document.write as documnt.write in our first script? Here's how that would look:
Figure 1.8 Locating an error in the Internet Explorer.
In fact, you can have a dialog box come up automatically for every error. In the Internet Explorer 6, you do that with the Tools | Internet Options | Advanced | Browsing item, and select the check box labeled Display a Notification About Every Script Error.
Locating errors like this can be invaluable in helping you deal with them, and it's a good foundation item for our foundation chapter.
Figure 1.9 Locating an error in the Netscape