table ¼Ó¿¡¼­ ºó tHead ¿¤·¹¸àÆ®¸¦ »ý¼ºÇÑ´Ù.

Àμö/ÆĶó¸ÞÅÍ
ÆĶó¸ÞÅÍ

ÆĶó¸ÞÅÍ´Â ¾ø´Ù.

¹Ýȯ°ª

¹Ýȯ°ª oValÀº »ý¼ºµÈ tHead °³Ã¼À̰ųª ½ÇÆÐÇϸé nullÀÌ´Ù.

Ư±â

tHead°¡ ÀÌ¹Ì table¿¡ Á¸ÀçÇϸé, createTHead ¸Þ¼­µå´Â ±âÁ¸ ¿¤·¹¸àÆ®¸¦ ¹ÝȯÇÏ°í, ¾Æ´Ï¸é »ý¼ºµÈ °³Ã¼ÀÇ Æ÷ÀÎÅ͸¦ ¹ÝȯÇÑ´Ù.

Àû¿ë
°³Ã¼scriptIE
ÂüÁ¶
createCaption createTHead deleteCaption deleteTFoot deleteTHead

ÀÌ ¸Þ¼­µå´Â (¿µ¾î)DOM Level 1(Document Object Model Level 1)¿¡¼­ Á¤ÀǵǾú´Ù.


¿¹Á¦ Å×À̺íÀÇ Ä­1 ¿¹Á¦ Å×À̺íÀÇ Ä­2
°á°ú Ç¥½Ãâ
<TABLE id=tableObj border=1 width=400>
<TR>
<TD>¿¹Á¦ Å×À̺íÀÇ Ä­1</TD>
<TD>¿¹Á¦ Å×À̺íÀÇ Ä­2</TD>
</TR>
</TABLE>
<DIV id=showA>°á°ú Ç¥½Ãâ</DIV>
<SCRIPT>
function maketHead(){
  tHeadObj=document.all.tableObj.createTHead();
  showA.innerHTML=tableObj.tHead.nodeName;
}
function deltHead(){
  tableObj.deleteTHead();
  showA.innerHTML='»èÁ¦µÇ¾ú´Ù';
}
</SCRIPT>
<BUTTON onclick="maketHead();">tHead »ý¼º Ŭ¸¯</BUTTON>
<BUTTON onclick="deltHead();">tHead Á¦°Å Ŭ¸¯</BUTTON>