• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

Text

Description

A Text object represents a run of plain text without markup in a DOM document tree. Do not confuse it with the single-line text input element of HTML, which is represented by the Input object.

Properties

data

The string of text contained by this node.

length

The number of characters contained by this node. Read-only.

Methods

appendData(text)

Appends the specified text to this node and returns nothing.

deleteData(offset, count)

Deletes text from this node, starting with the character at the specified offset, and continuing for count characters. Returns nothing.

insertData(offset, text)

Inserts the specified text into this node at the specified character offset. Returns nothing.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint