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