TOC PREV NEXT INDEX

domref



setEndAfter


Sets the end position of a Range relative to another Node.

Syntax

range.setEndAfter(referenceNode);
 

Parameters

The setEndAfter() method takes the following parameters:

referenceNode
 

The Node to end the Range after

Example

range = document.createRange();
 
referenceNode = document.getElementsByTagName("div").item(0);
 
range.setEndAfter(referenceNode);
 

Notes

The parent Node of end of the Range will be the same as that for the referenceNode.

Specification

setEndAfter


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX