selection

The selection object belongs to the document object. It is used to asertain whether or not a character or greoup of characters has been selected within a textRange object or element. The same functionality within Netscape is through the use of the document.getSelection() method. It should be noted that clicking a button will deselect the text or character, so it is paramount that you understand that all scripted actions involving selections must be triggerred by select events or JavScript functions evoked through the use of a timer. Use the window.setTimeOut() method to accomplish the timer effect.

DOM Reference

Internet Explorer
document.selection

The properties of the selection object are:

type

The Methods of the selection object are:

clear()
createRange()
empty()