O'Reilly logo

Javascript for the World Wide Web: Visual Quickstart Guide, Fifth Edition by Tom Negrino, Dori Smith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 20. Debugging Common Errors

It's often said that 90% of the time you spend writing programs is actually spent debugging them—that is, making them work after they've been written. Add to this the sad fact that none of the browsers that support JavaScript show meaningful error messages, and you have a recipe for frustration. This chapter shows some of the most common JavaScript errors, how to identify them, how to fix them, and how you can avoid them in the first place.

The Built-in Debugging Aids

The two major browsers, Microsoft Internet Explorer and Netscape Communicator, come with some limited features that can help you debug your code. Here's a brief rundown.

Microsoft

Internet Explorer 4 and later for all platforms provides a dialog box ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required