« Gecko DOM Reference
Summary
Sets the start position of a Range relative to another Node.
Syntax
range.setStartAfter(referenceNode);
Parameters
- referenceNode
- The
Node to start the Range after
Example
range = document.createRange();
referenceNode = document.getElementsByTagName("div").item(0);
range.setStartAfter(referenceNode);
Notes
The parent Node of the start of the Range will be the same as that for the referenceNode.