setStart method
Sets the starting point of a range.
Syntax
object.setStart(oNode, offset);
Parameters
oNode [in]
Type: NodeNode in the document hierarchy.
offset [in]
Type: longSpecifies the offset value for the starting point.
Return value
This method does not return a value.
Exceptions
Exception | Condition |
---|---|
InvalidStateError | IHTMLDOMRange::detach has been invoked on the object. |
IndexSizeError | offset is negative or greater than the number of child units in refNode. Versions earlier than Internet Explorer 10 return W3Exception_DOM_INDEX_SIZE_ERR. |