HTML DOM Range endContainer property
The endContainer property returns the Node within which the Current Range ends. This is a read only property.
parentNode = range.endContainer;
- Returns the node within which the current range ends.
Example: This example will show how to get the endContainer Node of the Current Range.
Output: In console, we got the endContainer Node for our range.
- Google Chrome
- Internet Explorer