Programmer's Guide > Interfaces > ARange interface > toMarkupString method
  
toMarkupString method
Returns the contents of a Range as a string. This string contains the character data and markup representing the entire contents of the range.
toMarkupString( )
Parameters
None
Returns
String. The contents of the Range.
Throws
DOMException
INVALID_STATE_ERR: Raised if the Range has already been detached.