Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 742749 of DOMStringList

  • Revision slug: Web/API/DOMStringList
  • Revision title: DOMStringList
  • Revision id: 742749
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment Mountain View APIRef Project

Revision Content

{{APIRef("DOM")}}{{Obsolete_header}}

A type returned by some APIs which contains a list of 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 {{jsxref("Boolean")}} indicating if the given string is in the list

Specifications

Revision Source

<p>{{APIRef("DOM")}}{{Obsolete_header}}</p>

<p>A type returned by some APIs which contains a list of <a class="internal" href="/En/DOM/DOMString" title="En/DOM/DOMString">DOMString</a> (strings).</p>

<h2 id="Properties">Properties</h2>

<dl>
 <dt>{{domxref("DOMStringList.length")}} {{ReadOnlyInline}}</dt>
 <dd>Returns the length of the list,</dd>
</dl>

<h2 id="Methods">Methods</h2>

<dl>
 <dt>{{domxref("DOMStringList.item()")}}</dt>
 <dd>Returns a {{domxref("DOMString")}}.</dd>
 <dt>{{domxref("DOMStringList.contains()")}}</dt>
 <dd>Returns {{jsxref("Boolean")}} indicating if the given string is in the list</dd>
</dl>

<h2 id="Specification">Specifications</h2>

<ul>
 <li><a class="external" href="https://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList" rel="freelink">https://www.w3.org/TR/DOM-Level-3-Cor...#DOMStringList</a></li>
</ul>
Revert to this revision