message
Summary
Returns the message associated with an error that occurred during a DOM operation.
Property of dom/DOMErrordom/DOMError
Syntax
Note: This property is read-only.
var result = element.message;
Return Value
Returns an object of type StringString
The message associated with an error.
Examples
function getErrorMsg(e) {
//retrieve message text for DOMError
var errorMsg = e.message;
return errorMsg;
}