August 1999
Intermediate to advanced
1488 pages
72h 53m
English
throw exception
The throw element of the JavaScript language was a reserved keyword in the JavaScript 1.3 and JScript 3.0 languages and in the Netscape Enterprise server 3 environment. Navigator 5 and Internet Explorer 5 were the first browsers to implement the keyword. It is used to generate an error condition handled by a try..catch statement or to pass errors found in these statements to higher level handlers.
Listing 6.265 contains a text box and button. The user is asked to insert a numeric value into the text box and press the button. When this is done, the onClick event handler of the button calls a function to check to see if the entered text was numeric. ...
Read now
Unlock full access