toString method (Range, selectionRange)
Note: The selectionRange object and its toString method are supported in Internet Explorer from version 9.In older Internet Explorer versions (and optionally in newer ones as well), use the text property of the TextRange object for similar functionality.
You can find the related objects in the Supported by objects section below.
String that retrieves the text content.
Example HTML code 1:
This example illustrates the use of the toString method for selections:
Did you find this example helpful?
User Contributed Comments