Creates a TextRange object collection from the current selection.
retVal = object.createRangeCollection();
This method has no parameters.
There are no standards that apply here.
Host applications can provide a multiple selection mechanism and can return a collection of TextRange objects that represents discontinuous selections.
Microsoft Internet Explorer 5.5 does not provide multiple selection. The default implementation of this method returns a collection consisting of a single TextRange object.
The following example displays the text of the first selected item.
var myCollection; myCollection = document.selection.createRangeCollection(); alert( myCollection.item(0).text );
Build date: 11/12/2012