This topic has not yet been rated - Rate this topic

setEnd method

Sets the end point of the range.

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

Syntax

Range.setEnd(oNode, offset);

Standards information

Parameters

oNode [in]

Type: Node

A node in the document hierarchy.

offset [in]

Type: Integer

Specifies the offset value for the end point.

Return value

This method does not return a value.

Exceptions

ExceptionCondition
InvalidStateError

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.

See also

Range

 

 

Send comments about this topic to Microsoft

Build date: 11/8/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.