selection.createRange() (Method)

A factory method for creating a text range.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:TextRange object
JavaScript syntax:myTextRange = IEmySelection.createRange()

You will need to create a TextRange to operate on a Selection object in the MSIE browser. Once you have the TextRange you can then use script code to manipulate the content.

See also:TextRange object