Scripts may terminate in an expected and normal way or abnormally due to some problem. The predominant reason for premature aborts of scripts is some kind of programmer error, most likely a syntax error or a reference to a non-existent object.
Web browsers behave in different ways and you may be able to add development tools around the browser to catch the exception as it happens and carry out some debugging.
Generally speaking the debugging tools for JavaScript are weak by comparison with those that you use with a compiled language. Some environments provide better tools than others do.
Prev | Home | Next |
<SCRIPT SRC="..."> | Up | <SCRIPT TYPE="..."> |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |