---
title: DOMException.name
slug: Web/API/DOMException/name
tags:
  - API
  - DOM
  - DOMException
  - Property
  - Reference
  - name
browser-compat: api.DOMException.name
---
{{ APIRef("DOM") }}

The **`name`** read-only property of the
{{domxref("DOMException")}} interface returns a {{domxref("DOMString")}} that contains
one of the strings associated with an [error name](/en-US/docs/Web/API/DOMException#error_names).

## Syntax

```js
var domExceptionName = domExceptionInstance.name;
```

### Value

A {{domxref("DOMString")}}.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
