WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

Selection

Interfaces to get and modify the currently selected text in a window. The nsISelection interface is directly accessible in JavaScript using window.getSelection().

nsISelection
nsISelection2
nsISelectionController
nsISelectionDisplay
nsISelectionListener
nsISelectionPrivate

@mozilla.org/autocopy;1

Reference documentation is generated from Mozilla's source.