splitText

The splitText JS Text splits data at the given offset and returns the remainder as Text node.

Syntax

text.splitText(offset)

Parameters

offset

A non-negative integer.

Examples

Text

wholeText

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu