Help Center

Local Navigation

Object: Text


BlackBerry® Device Software version 4.6 or later



The Text object represents the textual content of an element or attribute. If an element contains no child elements, any text is contained in a single text node in the DOM.

Although it is possible to place multiple text objects are adjacent to one another in a document, adjacent text nodes have no meaning in a document. Hence, using Text.splitText() has no visual effect on the document unless one of the nodes is wrapped by an element.

Text methods

Method name




Breaks the node into two nodes at the specified offset location.

4.6 or later

Was this information helpful? Send us your comments.