javascript Range commonAncestorContainer
| commonAncestorContainer | NN 6 IE n/a DOM 2 |
| Read-only | |
|
Returns a reference to a document tree node that is the next outermost container that encompasses the current range's start and end points. If the start and end points are, themselves, in the same node (for example, the same text node), the commonAncestorContainer property returns a reference to that node's parent node. IE TextRange equivalent is parentElement( ). |
|
| Example | |
var containingElem = rng.commonAncestorContainer; |
|
| Value | |
Reference to a node object (commonly an element node type). |
|
| Default | |
None. |
|
Previous: javascript Range endContainer
1624,Nickname,Homepage or email,Comments here,Add comment
