Section 25.242. Range.setEndAfter( ): end a range after a specified node


25.242. Range.setEndAfter( ): end a range after a specified node

DOM Level 2 Range

25.242.1. Synopsis

 void setEndAfter(Node refNode)     tHRows RangeException, DOMException; 

25.242.1.1. Arguments

refNode

The node after which the end point of the range is to be set.

25.242.1.2. Throws

A RangeException with a code of INVALID_NODE_TYPE_ERR if refNode is a Document, DocumentFragment or Attr node, or if the root container of refNode is not a Document, DocumentFragment, or Attr node.

A DOMException with a code of WRONG_DOCUMENT_ERR if refNode is part of a different document than the one through which this range was created.

25.242.2. Description

This method sets the end point of this range to fall immediately after the specified refNode.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net