Extracts a range of characters from the node.
Method of dom/CharacterDatadom/CharacterData
Syntaxvar substring = textualNode.substringData(offset, count);
Parameters offset
The zero-based offset from which to start.
countThe number of characters to extract.
Return ValueReturns an object of type StringString
The requested substring.
Examples
var phrase = document.createTextNode ("A flawed plan today is way better than a perfect plan tomorrow.");
var subst = phrase.substringData(23, 3);
alert(subst);
Notes
If the sum of the offset and count parameters exceeds the number of characters in the object, then an error is returned.
Syntax Standards information Related specificationsMicrosoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4