Name
selection — NN n/a IE 4 DOM n/a
Synopsis
Read-only
Returns a selection
object. To work with text that
has been selected by the user or script, you must convert the
selection to a TextRange
object. This is possible
only in Internet Explorer for Win32.
Example
var range = document.selection.createRange( )
Value
Object reference.
Default
None.
Get Dynamic HTML: The Definitive Reference 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.