Visit Mozilla.org

DOM:range.endContainer

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Returns the Node within which the Range ends.

[edit] Syntax

endRangeNode = range.endContainer;

[edit] Example

range = document.createRange();
range.setStart(startNode,startOffset); 
range.setEnd(endNode,endOffset);
endRangeNode = range.endContainer;

[edit] Notes

Returns a reference to the Node in the document within which the Range ends. This property is read-only. To change the end position of a node, use the setEnd method or a similar method.

[edit] Specification

endContainer