wiki:javascript:javascript_note:innertext
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판
이전 판
다음 판
|
이전 판
|
wiki:javascript:javascript_note:innertext [2021/06/07 10:44] emblim98 |
wiki:javascript:javascript_note:innertext [2023/01/13 18:44] (현재) |
<h3>Differences between innerText and textContent.</h3> | <h3>Differences between innerText and textContent.</h3> |
| |
<p id="demo">This p element contatins a <span style="display: none">hidden span element</span> and a <span>visible span element</span>.</p> | <p id="demo">This p element contatins a <span style="display: none">hidden span element</span> |
| and a <span>visible span element</span>.</p> |
| |
<button onclick="getTextContent()">Get textContent</button> | <button onclick="getTextContent()">Get textContent</button> |
<button onclick="getInnerText()">Get innerText</button> | <button onclick="getInnerText()">Get innerText</button> |
| |
<p><strong>Note:</strong> The textContent property is not supported in Internet Explorer 8 and earlier, and the innerText property is not supported in IE9 and earlier.</p> | <p><strong>Note:</strong> The textContent property is not supported in Internet Explorer 8 and earlier, |
| and the innerText property is not supported in IE9 and earlier.</p> |
| |
<p id="demo"></p> | <p id="demo"></p> |
/volume1/web/dokuwiki/data/attic/wiki/javascript/javascript_note/innertext.1623030287.txt.gz · 마지막으로 수정됨: 2022/03/10 19:52 (바깥 편집)