Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
String substringData(unsigned longoffset,
unsigned long count)
throws DOMException;offset
The position of the first character to be returned.
count
The number of characters in the substring to be returned.
A string that consists of count characters of the Text or Comment node starting with the character at position offset.
This method may throw a DOMException with one of the following code values:
INDEX_SIZE_ERR
offset is negative or greater than the length of the Text or Comment node, or count is negative.
DOMSTRING_SIZE_ERR
The specified range of text is too long to fit into a string in the browser's JavaScript implementation.