노드(node)의 값을 반환하거나 설정한다.
![]() | Script | object.nodeValue=[sVal] |
HTML | 없음 |
이 속성은 읽기/쓰기이며 디폴트값은 없다.
개체가 TextNode이면 nodeValue 속성은 노드에 의하여 생성된 텍스트를 대표하는 문자열을 반환한다.
TextNode 개체의 nodeValue 속성값을 변경하기 위하여 사용할 수 없다.
개체가 attributes 컬렉션으로부너 반환받은 attribute 개체이면 nodeValue 속성은 애트리부트의 값를 반환하거나 null을 반환한다.
개체가 엘레멘트이면 nodeValue는 null을 반환한다. nodeName 속성은 엘레멘트의 이름을 확인하는데 사용된다.
개체 | script | HTML | 규격 | IE |
---|---|---|---|---|
a | a.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
acronym | acronym.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
address | address.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
applet | applet.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
area | area.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
attribute | attribute.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
b | b.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
base | base.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
baseFont | baseFont.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
bdo | bdo.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
bgSound | bgSound.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
big | big.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
blockQuote | blockQuote.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
body | body.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
br | br.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
button | button.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
caption | caption.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
center | center.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
cite | cite.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
code | code.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
col | col.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
colGroup | colGroup.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
comment | comment.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
dd | dd.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
del | del.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
dfn | dfn.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
dir | dir.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
div | div.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
dl | dl.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
dt | dt.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
em | em.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
embed | embed.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
fieldSet | fieldSet.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
font | font.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
form | form.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
frame | frame.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
frameSet | frameSet.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
head | head.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
hn | hn.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
hr | hr.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
html | html.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
i | i.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
iFrame | iFrame.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
img | img.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
button | button.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
checkbox | checkbox.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
FileUpload | FileUpload.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
hidden | hidden.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
image | image.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
password | password.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
radio | radio.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
reset | reset.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
submit | submit.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
text | text.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
ins | ins.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
kbd | kbd.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
label | label.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
legend | legend.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
li | li.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
link | link.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
listing | listing.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
map | map.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
marquee | marquee.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
menu | menu.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
nextID | nextID.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
Object | Object.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
ol | ol.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
Option | Option.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
p | p.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
plainText | plainText.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
pre | pre.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
q | q.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
s | s.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
samp | samp.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
script | script.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
select | select.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
small | small.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
span | span.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
strike | strike.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
strong | strong.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
sub | sub.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
sup | sup.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
table | table.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
tBody | tBody.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
td | td.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
textArea | textArea.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
TextNode | TextNode.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
tFoot | tFoot.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
th | th.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
tHead | tHead.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
title | title.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
tr | tr.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
tt | tt.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
u | u.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
ul | ul.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
var | var.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
xmp | xmp.nodeValue[=sVal] | 없음 | 없음 | IE5(win16,win32,unix,mac),IE5.5(ce) |
이 속성은 (영문) W3C DOM Level 1(Document Object Model)에서 정의되었다.
![]() | nodeValue 속성⇒ | ![]() | ⇒ | ![]() ![]() ![]() |
목록 항목에 포함된 텍스트 노드의 nodeValue 속성으로 설정된 목록 항목의 문자열을 변경시킨다.
<UL id="olistObj" onclick="changeNodeValue(this,0,'새로운 nodeValue')"> <LI style="border:solid 1 blue">원래의 nodeValue 클릭해보라 <LI>원래의 항목 2 </UL> <SCRIPT> function changeNodeValue(listObj,itemNb,textVal){ // 목록에서만 작용된다. if (listObj.nodeName!='UL'&&listObj.nodeName!='OL') {showA.innerHTML='목록이 아님'; return false;} if (itemNb>listObj.childNodes.length -1){ showA.innerHTML='항목이 틀림'; return false;} var liObj=listObj.childNodes(itemNb); if (!liObj) { showA.innerHTML='항목이 틀림'; return false;} var newText=liObj.childNodes(0); // 텍스트 노드를 확인 if (newText.nodeType!=3) { showA.innerHTML='텍스트 노드가 아님'; return false;}; newText.nodeValue=textVal; showA.innerHTML='newText.nodeValue='+newText.nodeValue; return true; } </SCRIPT> <DIV id=showA>결과 표시창</DIV>
![]() | nodeValue 속성⇒ | ![]() | ⇒ | ![]() ![]() ![]() |
![]() | nodeValue 속성 | ⇒ | ![]() ![]() |
최종 수정: 07/13/2025 09:22:31 | ![]() All right reserved | 비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다. 오류가 나면 정상적 접속으로 시도해 보세요. | http://koxo.com/lang/js/property/nodeValue.html |