name property
Returns a DOMString value that is the name of the error that occurred during a Range operation.
This property is read-only.
![]() |
Syntax
| JavaScript |
|---|
sErrorName = object.name |
Property values
Type: DOMString
The name of the specific RangeException that occured.
Remarks
Range exception also supports a code value. The following table shows the code associated with the specific RangeException:
| Code value | Name value |
|---|---|
| 1 | BadBoundarypointsError |
| 2 | InvalidNodeTypeError |
See also
Show:
