table ¿¤·¹¸àÆ®ÀÇ Á¦¸ñÀ» ³ªÅ¸³»´Â caption °³Ã¼¸¦ ¹ÝȯÇÑ´Ù.
ÀÌ °³Ã¼Àº <TABLE><CAPTION>Å×À̺íÀÇ Á¦¸ñ</CAPTION></TABLE>¿¡ ÇØ´çÇÑ´Ù.
ÀÌ ¼Ó¼ºÀº ÀбâÀü¿ëÀ¸·Î µðÆúÆ®°ªÀº nullÀÌ´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ ¼Ó¼ºÀº (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼ Á¤ÀǵǾú´Ù.
Å×À̺í Ä1 | Å×À̺í Ä2 |
<TABLE id=tableObj border=1 width=400> <CAPTION id=captionObj>Å×À̺í Á¦¸ñ(caption)</CAPTION> <TR><TD>Å×À̺í Ä1</TD><TD>Å×À̺í Ä2</TD></TR> </TABLE> <DIV id=show style="width:400;border:solid 1 blue;padding:5"> <SCRIPT> str='tableObj.caption='+tableObj.caption+'<BR>'; str+='tableObj.caption.id='+tableObj.caption.id+'<BR>'; str+='tableObj.caption.nodeName='+tableObj.caption.nodeName+'<BR>'; str+='tableObj.caption.parentElement.nodeName='+tableObj.caption.parentElement.nodeName+'<BR>'; str+='tableObj.caption.innerText='+tableObj.caption.innerText+'<BR>'; str+='tableObj.caption.style.color='+tableObj.caption.style.color+'<BR>'; document.all.tableObj.caption.style.color='red'; str+='document.all.tableObj.caption.style.color="red";<BR>'; str+='tableObj.caption.style.color='+tableObj.caption.style.color+'<BR>'; document.write(str); </SCRIPT> </DIV>