mozilla

nsISelection3

Please add a summary to this article.
1.0
28
Introduced
Gecko 2.0
Obsolete
Gecko 8.0
Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

Gecko 8.0 note
(Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5)

In Gecko 8.0 this Interface was merged into the nsISelection interface.

Method overview

void modify(in DOMString alter, in DOMString direction, in DOMString granularity);

Methods

modify()

Modifies the selection. Note that the parameters are case-insensitive.

void modify(
  in DOMString alter,
  in DOMString direction,
  in DOMString granularity
);
Parameters
alter
Can be one of { "move", "extend" }
  • "move" collapses the selection to the end of the selection and applies the movement direction/granularity to the collapsed selection.
  • "extend" leaves the start of the selection unchanged, and applies movement direction/granularity to the end of the selection.
direction
Can be one of { "forward", "backward", "left", "right" }
granularity
Can be one of { "character", "word", "line", "lineboundary" }

See also

Document Tags and Contributors

Contributors to this page: Sheppy, trevorh
Last updated by: Sheppy,