selection object property DOCUMENT , used only in scripts. Returns a reference to the child SELECTION object. This object defines the properties and methods of the current selection on the page. window.document.selection For example, return the type of the user-selected area: