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

A type returned by some APIs which contains a list of [DOMString](/en-US/docs/Web/API/DOMString) (strings).

## Properties

- {{domxref("DOMStringList.length")}} {{ReadOnlyInline}}
  - : Returns the length of the list.

## Methods

- {{domxref("DOMStringList.item()")}}
  - : Returns a {{domxref("DOMString")}}.
- {{domxref("DOMStringList.contains()")}}
  - : Returns a boolean value indicating if the given string is in the list

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
