Retrieve a named flow by its name
Method of apis/css-regions/NamedFlowCollectionapis/css-regions/NamedFlowCollection
Syntaxvar flow = flows.namedItem(name);
Parameters name
the name of the named flow
Return ValueReturns an object of type DOM NodeDOM Node
the NamedFlow object that corresponds to the specified name
ExamplesRetrieve 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
namedItem()
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4