DOMException.message

The message read-only property of the DOMException interface returns a DOMString representing a message or description associated with the given error name.

Syntax

var domExceptionMessage = domExceptionInstance.message;

Value

A DOMString.

Specifications

Specification Status Comment
Web IDL
The definition of 'message' in that specification.
Candidate Recommendation Ā 

Browser Compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
messageChrome Full support YesEdge Full support 12Firefox Full support 1IE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support Ā 
Full support
Compatibility unknown Ā 
Compatibility unknown