message
Summary
Retrieves a string describing the exception that occurred.
Property of dom/DOMExceptiondom/DOMException
Syntax
Note: This property is read-only.
var exceptionMessage = exception.message;
Return Value
Returns an object of type StringString
A short description of the exception.
Examples
function getExceptionMsg(e) {
//retrieve text for DOMException
var exceptionMsg = e.message;
return exceptionMsg;
}
Related specifications
- DOM Level 2 Core
- Recommendation
See also
Related pages
- RangeExceptionRangeException
- EventExceptionEventException
- codecode
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]