startContainer
Summary
Retrieves the starting node of a current range
Property of dom/Rangedom/Range
Syntax
Note: This property is read-only.
var startRangeNode = range.startContainer;
Return Value
Returns an object of type DOM NodeDOM Node
The starting node in the range
Examples
var range = document.createRange();
range.setStart(startNode,startOffset);
range.setEnd(endNode,endOffset);
var startRangeNode = range.startContainer;
Syntax
startRangeNode = range.startContainer;
Standards information
Related specifications
- DOM
- Living Standard
Attributions
Mozilla Developer Network : [Range.startContainer Article]
Microsoft Developer Network: [startContainer Property Article]