Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Document.getSelection()

This method functions identically to the Window.getSelection() method; it returns a Selection object representing the text currently selected in the document.

Document Tags and Contributors

 Contributors to this page: teoli, Sheppy, kscarfone, Khodaidad_Basharmand, ethertank, RobG
 Last updated by: teoli,