Programmer's Guide > Interfaces > W3C Range interface > toString method
  
toString method
Returns the contents of a Range as a string. This string contains only the data characters, not any markup.
toString()
Parameters
None
Returns
String. The contents of the Range.
Throws
DOMException
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.