Javascript Reference
Categories: document

javascript document selection

@March 15, 2008, 1:22 a.m.
selection Firefox/Netscape/NN n/a IE 4 Chrome/Safari/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.


Powered by Linode.