Returns or sets the descriptive string associated with a specific error.
Syntaxobject .description [ = stringExpression ]
The following example illustrates the use of the description property.
try
{
x = y
}
catch(e)
{
document.write(e)
document.write (" ");
document.write((e.number & 0xFFFF))
document.write (" ");
document.write(e.description);
document.write (" ");
document.write(e.message)
}
Remarks
The description property contains the error message string associated with a specific error. Use the value contained in this property to alert a user to an error.
The description and message properties provide the same functionality; the description property provides backward compatibility; the message property complies with the ECMA standard.
See also Other articles AttributionsMicrosoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4