Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- modal
- keyup
- Event
- ES5
- css:position
- react
- innerHTML
- for loop
- HTML
- dotenv
- innerText
- Review
- javascript
- a11y
- UI
- es6
- textContent
- yet
- addEventListener
- node.js
- nodeValue
- js
- beforeinput
- Temporal dead zone
- keyboardEvent
- Empty
- TypingEffect
- node
- Dom
- CSS
Archives
- Today
- Total
the murmurous sea
DOM: Node.textContent 본문
1. property of the Node interface.
2. sets or returns the text content of the specified node, and all its descendants.
3. set the textContent property
: any child nodes are removed and replaced by a single Text node containing the specified string.
[Syntax]
Return the text content of a node:
node.textContent
Set the text content of a node:
node.textContent = htmlString
[Return Value]
: A String, representing the text of the node and all its descendants.
: or Returns null if the element is a document, a document type, or a notation.
https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent
'#dev > 개념정리' 카테고리의 다른 글
DOM: Element.innerHTML (0) | 2020.05.05 |
---|---|
DOM: HTMLElement.innerText (0) | 2020.05.05 |
DOM: Node.nodeValue (0) | 2020.05.05 |
DOM: nodeValue vs. textConent vs. innerText vs. innerHTML (0) | 2020.05.04 |
JS ES1: slice() (0) | 2020.05.04 |
Comments