javascript document selection
| selection | NN n/a IE 4 DOM n/a |
|
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. Access to the Netscape 6 selection is via the window.selection property. |
|
| Example | |
var range = document.selection.createRange( ); |
|
| Value | |
Object reference. |
|
| Default | |
None. |
|
Previous: javascript document styleSheets[ ]
573,Nickname,Homepage or email,Comments here,Add comment
