Export (0) Print
Expand All

setStartBefore method

Sets the start point of a range to a point before a specific node.

Document Object Model (DOM) Level 2 Traversal and Range Specification, Section 2.13Internet Explorer 9

Syntax

var retval = Range.setStartBefore(oNode);

Parameters

oNode [in]

Type: Node

Node in the document hierarchy.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
S_OK

The operation completed successfully.

InvalidStateError

detach has been invoked on the object.

 

Standards information

See also

Range

 

 

Show:
© 2014 Microsoft