Name
Document.getSelection( ) — return the selected text Netscape 4
Synopsis
document
.getSelection( )
Returns
The text, if any, that is currently selected within the document. This returned text has HTML formatting tags removed.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.