°³Ã¼ÀÇ ÇöÀç ÁغñµÈ »óÅÂÀ» ¹ÝȯÇÑ´Ù.
uninitialized | °³Ã¼°¡ µ¥ÀÌÅÍ·Î ÃʱâȵÇÁö ¾Ê¾Ò´Ù. |
loading | °³Ã¼¿¡ µ¥ÀÌÅÍ°¡ ·ÎµùµÇ°í ÀÖ´Ù. |
loaded | °³Ã¼¿¡ µ¥ÀÌÅÍ ·ÎµùÀÌ ¿Ï·áµÇ¾ú´Ù. |
interactive | °³Ã¼¿¡ µ¥ÀÌÅÍ°¡ ¿ÏÀüÈ÷ ·ÎµùµÇÁö ¾Ê¾Ò¾îµµ »ç¿ëÀÚ°¡ °³Ã¼¿¡ ÀÛ¿ëÇÒ ¼ö ÀÖ´Ù. |
complete | °³Ã¼ÀÇ ÃʱâÈ°¡ ¿Ï·áµÇ¾ú´Ù. |
ÀÌ ¼Ó¼ºÀº ÀбâÀü¿ëÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.
°³Ã¼°¡ Àü´ÞÇÏ´Â »óŵéÀº ±× °³Ã¼¿¡ ÀÇÇÏ¿© °áÁ¤µÈ´Ù.
°³Ã¼¿¡µû¶ó °³Ã¼¿¡ Àû¿ëµÇÁö ¾Ê´Â ÀϺΠ»óŸ¦ °Ç³Ê¶Û ¼ö ÀÖ´Ù(¿¹:interactive).
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
¹®¼ÀÇ ¸ðµç ¿¤·¹¸àÆ®(ÇöÀç ÀÐÀº űױîÁö)ÀÇ readyState°¡ 'complete'°¡ ¾Æ´Ñ °ÍµéÀÇ ¸ñ·ÏÀÌ´Ù.
Á¦ÀÏ À§¿Í ³ª¸ÓÁöµéÀº ¸ðµÎ 'complete' ÀÌ´Ù.
<BUTTON onclick="doShow()">»óź¸±â</BUTTON> <DIV id=showA>°á°ú Ç¥½Ãâ</DIV> <SCRIPT> document.onload=doShow() function doShow(){ str=''; for (i=0;i< document.all.length;i++){ if (document.all[i].readyState!='complete'){ str+='<SPAN style=width:20em;>document.all['+i+'].nodeName='+document.all[i].nodeName+'</SPAN>'; str+='<SPAN style=width:1em></SPAN>document.all['+i+'].readyState='+document.all[i].readyState+'<BR>'; } } if (str=='') str='¸ðµÎ complete°¡ µÇ¾ú´Ù.'; showA.innerHTML=str; } </SCRIPT>