Programmer's Guide > Interfaces > W3C Range interface > setStart method
  
setStart method
Sets the attributes describing the start of the Range.
setStart(refNode, offset)
Parameters
NoderefNode
The refNode value. This parameter must be different from null.
longoffset
The startOffset value.
Returns
void
Throws
RangeException
INVALID_NODE_TYPE_ERR: Raised if refNode or an ancestor of refNode is an Entity, Notation, or DocumentType node.
DOMException
INDEX_SIZE_ERR: Raised if offset is negative or greater than the number of child units in refNode. Child units are 16-bit units if refNode is a type of CharacterData node (e.g., a Text or Comment node) or a ProcessingInstruction node. Child units are Nodes in all other cases.
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
WRONG_DOCUMENT_ERR: Raised if refNode was created from a different document than the one that created this range.