This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

namedItem()

Summary

Retrieve a named flow by its name

Method of apis/css-regions/NamedFlowCollectionapis/css-regions/NamedFlowCollection

Syntax

var flow = flows.namedItem(name);

Parameters

name

Data-type
String

the name of the named flow

Return Value

Returns an object of type DOM NodeDOM Node

the NamedFlow object that corresponds to the specified name

Examples

Retrieve the main flow from the document, in one method-chained line:

var flow = document.getNamedFlows().namedItem('main');

Usage

 The NamedFlowCollection object is an array snapshot of a document's named flows. This method allows you to access a specific flow directly by its name, rather than by iterating over the array.

Related specifications

CSS Regions Module Level 1
W3C Working Draft 28 May 2013

See also

Related articles

Regions

External resources