======Javascript HTML DOM textContent Property====== * description : Javascript HTML DOM textContent Property * author : 오션 * email : shlim@repia.com * lastupdate : 2021-06-07 \\ =====The source of the article==== [[https://www.w3schools.com/jsref/prop_node_textcontent.asp|Javascript HTML DOM textContent Property]]\\ ====Example==== 요소의 내부 텍스트(inner text)를 가져옵니다.\\

Click the button to get the text content of the button element.

Note: The textContent property is not supported in Internet Explorer 8 and earlier.

=====Definition and Usage===== %%textContent%% 속성은 지정된 노드 및 모든 하위 항목의 텍스트 콘텐츠를 설정하거나 반환합니다.\\ \\ %%textContent%% 속성을 설정하면, 모든 자식 노드가 제거되고 지정된 문자열을 포함하는 단일 텍스트 노드로 대체됩니다.\\ \\ **Note:** 이 속성은 %%innerText%% 속성과 비슷하지만 몇 가지 차이점이 있습니다.\\ * %%textContent%%는 모든 요소의 텍스트 콘텐츠를 반환하는 반면, %%innerText%%는 %% ====Example==== %%id="myList"%%를 가진 %%