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.

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