table ¼Ó¿¡¼ ºó tFoot ¿¤·¹¸àÆ®¸¦ »ý¼ºÇÑ´Ù.
ÆĶó¸ÞÅÍ´Â ¾ø´Ù.
¹Ýȯ°ª oValÀº »ý¼ºµÈ tFoot °³Ã¼À̰ųª ½ÇÆÐÇϸé nullÀÌ´Ù.
tFoot°¡ ÀÌ¹Ì table¿¡ Á¸ÀçÇϸé, createTFoot ¸Þ¼µå´Â ±âÁ¸ ¿¤·¹¸àÆ®¸¦ ¹ÝȯÇÏ°í, ¾Æ´Ï¸é »ý¼ºµÈ °³Ã¼ÀÇ Æ÷ÀÎÅ͸¦ ¹ÝȯÇÑ´Ù.
°³Ã¼ | script | IE |
---|
ÀÌ ¸Þ¼µå´Â (¿µ¾î)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 maketFoot(){ tFootObj=document.all.tableObj.createTFoot(); showA.innerHTML=tableObj.tFoot.nodeName; } function deltFoot(){ tableObj.deleteTFoot(); showA.innerHTML='»èÁ¦µÇ¾ú´Ù'; } </SCRIPT> <BUTTON onclick="maketFoot();">tFoot »ý¼º Ŭ¸¯</BUTTON> <BUTTON onclick="deltFoot();">tFoot Á¦°Å Ŭ¸¯</BUTTON>