namespaces Ä÷º¼ÇÀ¸·ÎºÎÅÍ namespace °³Ã¼¸¦ ¹ÝȯÇÑ´Ù.
¹Ýȯ°ª oItemÀº ¼º°øÀûÀ̸é À̸§ÀÚ¸®¸¦ ¹ÝȯÇÏ°í, ½ÇÆÐÇϸé nullÀ» ¹ÝȯÇÑ´Ù.
°³Ã¼ | script | IE |
---|
¹®¼ÀÇ namespaces Ä÷º¼Ç¿¡¼ item ¸Þ¼µå·Î °³º° Ç׸ñÀ» ¹Ýȯ¹Þ¾Æ ºñÇìÀ̹ö¸¦ µµÀÔÇÏ¿© ¿¤·¹¸àÆ® ºñÇìÀ̹ö¸¦ Ãß°¡ÇÑ´Ù.
<HTML XMLNS:AAA> <HEAD> <SCRIPT> function doShow(){ oNSColl=document.namespaces; oNS=oNSColl.item('AAA'); oNS.doImport('../public/hilite.htc'); oElem=document.createElement('AAA:hilite'); document.body.appendChild(oElem); oElem.innerText='»õ·Î¿î ¿¤·¹¸àÆ®'; str='document.namespaces.length='+document.namespaces.length+'<BR>'; str+='oNS.name='+oNS.name+'<BR>'; str+='oElem.nodeName='+oElem.nodeName+'<BR>'; str+='oElem.tagName='+oElem.tagName+'<BR>'; str+='oElem.innerText='+oElem.innerText+'<BR>'; showA.innerHTML=str; } </SCRIPT> </HEAD> <BODY> <BUTTON onclick="doShow()">°á°ú º¸±â</BUTTON> <DIV id=showA></DIV> </BODY> </HTML>