Name

Range.toString( ) — get range contents as a plain-text string

Availability

DOM Level 2 Range

Synopsis

String toString(  );

Returns

The contents of this range as a string of plain text without any markup.

Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.