Javascript Reference
Categories: selection

javascript selection createRange( )

@July 30, 2008, 12:52 p.m.
createRange( ) Firefox/Netscape/NN n/a IE 4(Win) Chrome/Safari/DOM n/a  
 

Creates a TextRange object from the current selection object. After a statement like the following:

var myRange = document.selection.createRange( );
 

scripts can act on the content of the selected text.

 
Parameters

None.

 
Returned Value

TextRange object.


Powered by Linode.