August 1999
Intermediate to advanced
1488 pages
72h 53m
English
errorobj.description errorobj.description = string
The description property associated with the Error object contains the description of the error. This method is read/write so you can assign descriptions using this property.
Listing 9.47 creates an Error object and then displays the description.
<html>
<script language="JScript">
<!-- Hide
//Create an Error object
var myError = new Error(45,"A really big error!");
//Display description associated with the custom error
document.write("The custom error description is '");
document.write(myError.description,"'");
//Hide End -->
</script>
</html>
|
Read now
Unlock full access