Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

getSelection method

Returns an object that represents the current selection of the document.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 6.6.1

 

Syntax

object.getSelection(ppIHTMLSelection)

Parameters

This method has no parameters.

Return value

Type: IHTMLSelection

An HTMLSelection object that represents the current selection, if any.

Standards information

See also

document
window

 

 

Show:
© 2015 Microsoft