Visit Mozilla.org

DOM:range.startContainer

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Returns the Node within which the Range starts.

[edit] Syntax

startRangeNode = range.startContainer;

[edit] Example

range = document.createRange();
range.setStart(startNode,startOffset);
range.setEnd(endNode,endOffset);
startRangeNode = range.startContainer;

[edit] Notes

Returns a reference to the Node in the document within which the Range starts. This property is read-only. To change the start position of a node, use one of the setStart methods.

[edit] Specification

startParent