Visit Mozilla.org

DOM:Selection:extend

From MDC

« Gecko DOM Reference

[edit] Summary

Moves the focus of the selection to a specified point. The anchor of the selection does not move. The selection will be from the anchor to the new focus regardless of direction.

[edit] Syntax

sel.extend(parentNode, offset)

[edit] Parameters

parentNode
The node within which the focus will be moved.
offset
The number of characters from the beginning of parentNode's text the focus will be placed.

}