..
Finally the command for error handling in Javascript still performs the instructions in case of error in a try-type construct.
Let's see an example of code:
try
{
document.write ("Tthe my name is" + myname);
}
catch (e)
{
document.write ("The variable 'myname' is not defined!");
}
finally
{
document.write ("... but this code is executed anyway. ");
}
| |
CSS (Course)
Web Design and Accessibility according to W3C CSS and XHTML. Starting from 29 €. |
| |
HTML (Course)
The markup language for the Web from 29 €. |
| |
Javascript (Course)
Complete guide to client-side scripting. From 39 €. |