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