name
Summary
Returns the name of an error that occurred during a DOM operation.
Property of dom/DOMErrordom/DOMError
Syntax
Note: This property is read-only.
var errorName = error.name;
Return Value
Returns an object of type StringString
The name associated with an error.
Examples
function getErrorName(e) {
//retrieve name text for DOMError
var errorName = e.name;
return errorName;
}
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]