This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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;
}