Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 740
نمايش فراداده

Availability

DOM Level 2 Range

Synopsis

void setEndBefore(Node refNode) throws RangeException, DOMException;

Arguments

refNode

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

Throws

This method throws the same exceptions in the same circumstances as Range.setEndAfter( ). See that method for details.

Description

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