Overview / Web Technology
Web technology reference for developers
HTML
Structure of content on the web
CSS
Code used to describe document style
JavaScript
General-purpose scripting language
HTTP
Protocol for transmitting web resources
Web APIs
Interfaces for building web applications
Web Extensions
Developing extensions for web browsers
Accessibility
Build web projects usable for all
Web Technology
Web technology reference for developers
Filter sidebar
In this articleCharacterData
AbortController
AbortSignal
AbstractRange
Attr
CDATASection
Comment
CustomEvent
DOMError
DeprecatedDOMException
DOMImplementation
DOMParser
DOMPoint
DOMPointReadOnly
DOMRect
DOMTokenList
Document
DocumentFragment
DocumentType
Element
Event
EventTarget
HTMLCollection
MutationObserver
MutationRecord
NamedNodeMap
Node
NodeIterator
NodeList
ProcessingInstruction
Range
StaticRange
Text
TextDecoder
TextEncoder
TimeRanges
TreeWalker
XMLDocument
Baseline Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since July 2015.
The appendData()
method of the CharacterData
interface adds the provided data to the end of the node's current data.
js
appendData(data)
Parameters
data
The data to append to the current node.
None.
Examplehtml
<span>Result: </span>A text
js
const span = document.querySelector("span");
const textNode = span.nextSibling;
textNode.appendData(" - appended text.");
Specifications Specification DOM CharacterData.deleteData()
, CharacterData.insertData()
, CharacterData.replaceData()
CharacterData.data
.
This page was last modified on Oct 8, 2024 by MDN contributors.
View this page on GitHubâ¢
Report a problem with this contentRetroSearch 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