½ºÅ©¸³Æ® ¿£ÁøÀ¸·Î ó¸®µÉ ½ºÅ©¸³Æ®¸¦ ÂüÁ¶ÇÑ´Ù.

Script [propVal=]..propName;
HTML propName="propVal">innerString
Ư±â

±â´ÉÇÔ¼ö(function) ¼Ó¿¡ ÀÖ´Â ½ºÅ©¸³Æ®¸¦ Á¦¿ÜÇÏ°í SCRIPT´Â ¹®¼­°¡ ·ÎµùµÇ´Â Áï½Ã ¼öÇàµÈ´Ù. ¹öÀüÀÌ ³·¾Æ ½ºÅ©¸³Æ® ¼öÇàÀÌ ¾ÈµÇ´Â ºê¶ó¿ì¼­¸¦ À§ÇÏ¿© SCRIPTÀ» ÁÖ¼®(COMMENT) ºí·°¿¡ ³Ö´Â °ÍÀÌ ÁÁ´Ù.

<SCRIPT Language="Javascript">
<!-- °¨Ãã
Javascript Codes
// °¨Ãã ³¡  -->
</SCRIPT>

FRAMESET ¿¤·¹¸àÆ® ´ÙÀ½¿¡ ³ª¿À´Â ½ºÅ©¸³Æ®´Â ¹«½ÃµÈ´Ù.

SCRIPT °³Ã¼¿¡ language ¼Ó¼ºÀÌ ÁöÁ¤µÇÁö ¾ÊÀ¸¸é MSHTMLÀº Àû´çÇÑ ½ºÅ©¸³Æ® ¿£ÁøÀ» ãµµ·Ï ½ÃµµÇÑ´Ù. ½ºÅ©¸³Æ® ¿£ÁøÀ» À߸ø ¼±ÅÃÇϸé ÀϹÝÀûÀ¸·Î ¿À·ù°¡ ¹ß»ýµÈ´Ù. ÇÑ ¹®¼­¿¡¼­ µÎ°³ ÀÌ»óÀÇ SCRIPT °³Ã¼¸¦ »ç¿ëÇÏ´Â °æ¿ì¿¡´Â °¢ SCRIPT °³Ã¼ÀÇ language ¾ÖÆ®¸®ºäÆ®¸¦ ÁöÁ¤ÇÏ´Â °ÍÀÌ ¹Ù¶÷Á÷ÇÏ´Ù.

¹®¼­¿¡¼­ SCRIPT °³Ã¼µéÀÇ ¼ø¼­µµ Áß¿äÇÒ ¼ö ÀÖ´Ù. ƯÈ÷ À̺¥Æ®Ã³¸®ÀÚµéÀÌ ¹®¼­ ¼Ó¿¡¼­ ¿©·¯°³ÀÇ ¿¤·¹¸àÆ®¸¦ ´Ù·ê ¶§ ±×·¯ÇÏ´Ù. XML(Extensible Markup Language)Àº SCRIPT ³»¿ëÀ¸·Î´Â ÀûÇÕÇÏÁö¸¸ ½ºÅ©¸³Æ® ¾ð¾î´Â ¾Æ´Ï´Ù. ±×·¡¼­ MSHTML¿¡¼­ XML µ¥ÀÌÅÍ Áö¿ª(island)À¸·Î À̺¥Æ®Ã³¸®ÀÚ ±â´ÉÀ» °®´Â SCRIPT °³Ã¼¸¦ ÁöÁ¤ÇÏ¸é ¿À·ù°¡ ¹ß»ýµÉ ¼ö ÀÖ´Ù. ÀÌ´Â MSHTMLÀÌ À̺¥Æ®Ã³¸®Àڵ鸦 À§ÇÑ µðÆúÆ® ½ºÅ©¸³Æ® ºí·°ÀÇ language ¾ÖÆ®¸®ºäÆ®¸¦ Æ÷ÇÔÇϴ ù¹ø° SCRIPT °³Ã¼¸¦ ¼±ÅÃÇϱ⠶§¹®ÀÌ´Ù. ¿¹Á¦¸¦ ÂüÁ¶Ç϶ó.

ÀÌ °³Ã¼´Â IE3.0¿¡¼­ Áö¿øµÇ°í ½ºÅ©¸³Æ®´Â IE4.0¿¡¼­ ºÎÅÍ Áö¿øµÈ´Ù.

ÀÌ ¿¤·¹¸àÆ®´Â Ç¥ÇöµÇÁö ¾Ê´Â´Ù.

ÀÌ ¿¤·¹¸àÆ®´Â Á¾·áűװ¡ ÇÊ¿äÇÏ´Ù.

ÂüÁ¶
XML Data Islands

ÀÌ °³Ã¼´Â (¿µ¹®)HTML3.2¿¡ Á¤ÀǵǾú°í (¿µ¹®)DOM Level 1(W3C Document Object Model)¿¡ Á¤ÀǵǾú´Ù.


¼³¸íÀ» À§ÇÑ ¿¹Á¦

¾Õ ÇüÁ¦ SPANµÚ ÇüÁ¦ SPAN
<SPAN>¾Õ ÇüÁ¦ SPAN</SPAN><SCRIPT id=oObj lang=ko language=javascript title="script Á¦¸ñ" for=onclick name="scriptName" lang=ko language=JavaScript charset=euc-kr type=text/javascript>document.write("<FONT color=blue>Javascript·Î ¿¹Á¦ ¹®ÀÚ¿­</FONT>")</SCRIPT><SPAN>µÚ ÇüÁ¦ SPAN</SPAN>

Ä÷º¼Ç¼³¸í°ú ¿¹Á¦ ÄÚµå°á°úÂü°í
all °³Ã¼¿¡ Æ÷ÇԵǾî ÀÖ´Â ¸ðµç ¿¤·¹¸àÆ®µéÀÇ ¹è¿­º¯¼ö¸¦ ÂüÁ¶ÇÏ°í ¹ÝȯÇÑ´Ù.
<SCRIPT>document.write(oObj.all.length)</SCRIPT>
attributes °³Ã¼ÀÇ ¾ÖÆ®¸®ºäÆ®(attribute °³Ã¼)µéÀÇ ¹è¿­º¯¼ö¸¦ ÂüÁ¶ÇÏ°í ¹ÝȯÇÑ´Ù.
<SCRIPT>document.write(oObj.attributes.length)</SCRIPT>
behaviorUrns ¿¤·¹¸àÆ®¿¡ ÷ºÎµÈ ºñÇØÀ̹ö(behavior)µéÀ» ÀνÄÇÏ´Â ÁÖ¼Ò(URN) ¹®ÀÚ¿­µéÀÇ ¹è¿­º¯¼ö¸¦ ÂüÁ¶ÇÏ°í ¹ÝȯÇÑ´Ù.
<SCRIPT>document.write(oObj.behaviorUrns.length)</SCRIPT>
childNodes °³Ã¼ÀÇ ¹Ù·Î Á¾¼ÓµÈ ÀڽĵéÀÇ ¿¤·¹¸àÆ® °³Ã¼µé°ú TextNode °³Ã¼µéÀÇ ¹è¿­º¯¼ö¸¦ ÂüÁ¶ÇÏ°í ¹ÝȯÇÑ´Ù.
<SCRIPT>document.write(oObj.childNodes.length)</SCRIPT>
children °³Ã¼ÀÇ ¹Ù·Î Á¾¼ÓµÈ DHTML °³Ã¼µéÀÎ ÀڽĵéÀÇ ¹è¿­º¯¼ö¸¦ ÂüÁ¶ÇÏ°í ¹ÝȯÇÑ´Ù.
<SCRIPT>document.write(oObj.children.length)</SCRIPT>

canHaveHTML ¼Ó¼º IE
¢¡ °³Ã¼°¡ HTML ű׵éÀ» °¡Áú ¼ö Àִ°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: [bVal=].canHaveHTML
ÄÚµå: document.write(oObj.canHaveHTML); °á°ú:
charset ¼Ó¼º IE (charset="sVal"> ¾ÖÆ®¸®ºäÆ®)
¢¡ °³Ã¼ ¿£ÄÚµù¿¡ »ç¿ëµÈ ±ÛÀÚ¼¼Æ®¸¦ ¹ÝȯÇϰųª ÁöÁ¤ÇÑ´Ù.
¹®¹ý: [sVal=].charset
ÄÚµå: document.write(oObj.charset); °á°ú:
clientHeight ¼Ó¼º IE
¢¡ ºí·° °³Ã¼ÀÇ ³ôÀ̸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: [iVal=].clientHeight
ÄÚµå: document.write(oObj.clientHeight); °á°ú:
clientLeft ¼Ó¼º IE
¢¡ offsetLeft ¼Ó¼º°ú ½ÇÁ¦ÀûÀÎ »ç¿ëÀÚ Áö¿ªÀÇ ¿ÞÂÊ ¸ð¼­¸®¿ÍÀÇ °Å¸®¸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: [iVal=].clientLeft
ÄÚµå: document.write(oObj.clientLeft); °á°ú:
clientTop ¼Ó¼º IE
¢¡ offsetTop ¼Ó¼º°ú ½ÇÁ¦ÀûÀÎ »ç¿ëÀÚ Áö¿ªÀÇ À§ÂÊ ¸ð¼­¸®¿ÍÀÇ °Å¸®¸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: [iVal=].clientTop
ÄÚµå: document.write(oObj.clientTop); °á°ú:
clientWidth ¼Ó¼º IE
¢¡ ºí·° °³Ã¼ÀÇ ³Êºñ¸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: [iVal=].clientWidth
ÄÚµå: document.write(oObj.clientWidth); °á°ú:
defer ¼Ó¼º IE (defer="bVal"> ¾ÖÆ®¸®ºäÆ®)
¢¡ ½ºÅ©¸³Æ®ÀÇ »óŸ¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¹®¹ý: .defer[=bVal]
ÄÚµå: document.write(oObj.defer); °á°ú:
disabled ¼Ó¼º IE (disabled[=true|false]> ¾ÖÆ®¸®ºäÆ®)
¢¡ »ç¿ëÀÚ°¡ °³Ã¼¿¡¼­ ÀÛ¾÷ÇÒ ¼ö Àִ°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¹®¹ý: .disabled[=true|false]
ÄÚµå: document.write(oObj.disabled); °á°ú:
event ¼Ó¼º IE (event="sVal"> ¾ÖÆ®¸®ºäÆ®)
¢¡ ½ºÅ©¸³Æ®·Î ¾²¿©Áø À̺¥Æ®¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¹®¹ý: .event[=sVal]
ÄÚµå: document.write(oObj.event); °á°ú:
firstChild ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ childNodes Ä÷º¼Ç¿¡¼­ Á¦ÀÏ ¸ÕÀú ÀÚ½Ä °³Ã¼À» ¹ÝȯÇÑ´Ù.
¹®¹ý: [oVal=].firstChild
ÄÚµå: document.write(oObj.firstChild); °á°ú:
ÄÚµå: if (oObj.firstChild) document.write(oObj.firstChild.nodeName); °á°ú:
htmlFor ¼Ó¼º IE (for="sVal"> ¾ÖÆ®¸®ºäÆ®)
¢¡ À̺¥Æ® ½ºÅ©¸³Æ®¿¡ ¿¬°áµÈ °³Ã¼¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¹®¹ý: .htmlFor[=sVal]
ÄÚµå: document.write(oObj.htmlFor); °á°ú:
id ¼Ó¼º IE (id=sVal> ¾ÖÆ®¸®ºäÆ®)
¢¡ °³Ã¼¸¦ ´ëÇ¥ÇÏ´Â ÀνÄÀÚ ¹®ÀÚ¿­À» ¹ÝȯÇϰųª ÁöÁ¤ÇÑ´Ù.
¹®¹ý: .id[=sVal]
ÄÚµå: document.write(oObj.id); °á°ú:
innerText ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ ³»¿ë ¹®ÀÚ¿­À» ¹ÝȯÇϰųª ÁöÁ¤ÇÑ´Ù.
¹®¹ý: .innerText[=sVal]
ÄÚµå: document.write(oObj.innerText.length); °á°ú:
isContentEditable ¼Ó¼º IE
¢¡ »ç¿ëÀÚ°¡ °³Ã¼ÀÇ ³»¿ëÀ» ÆíÁýÇÒ ¼ö Àִ°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: [bVal=].isContentEditable
ÄÚµå: document.write(oObj.isContentEditable); °á°ú:
isDisabled ¼Ó¼º IE
¢¡ °³Ã¼°¡ ºÒÈ°¼ºÈ­ µÇ¾ú´Â°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: [bVal=].isDisabled
ÄÚµå: document.write(oObj.isDisabled); °á°ú:
isMultiLine ¼Ó¼º IE
¢¡ °³Ã¼°¡ ¿©·¯ÁÙ·Î µÇ¾îÀִ°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: [bVal=].isMultiLine
ÄÚµå: document.write(oObj.isMultiLine); °á°ú:
isTextEdit ¼Ó¼º IE
¢¡ °³Ã¼¼Ó¿¡¼­ TextRange °³Ã¼¸¦ »ý¼ºÇÒ¼ö Àִ°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: [bVal=].isTextEdit
ÄÚµå: document.write(oObj.isTextEdit); °á°ú:
lang ¼Ó¼º IE (lang="sVal"> ¾ÖÆ®¸®ºäÆ®)
¢¡ °³Ã¼¿¡¼­ »ç¿ëÇÑ ¾ð¾îÄڵ带 ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¹®¹ý: .lang[=sVal]
ÄÚµå: document.write(oObj.lang); °á°ú:
language ¼Ó¼º IE (language="sVal"> ¾ÖÆ®¸®ºäÆ®)
¢¡ °³Ã¼¿¡¼­ »ç¿ëÇÑ ½ºÅ©¸³Æ® ¾ð¾î¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¹®¹ý: .language[=sVal]
ÄÚµå: document.write(oObj.language); °á°ú:
lastChild ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ childNodes Ä÷º¼Ç¿¡¼­ ¸¶Áö¸· ÀÚ½Ä °³Ã¼À» ¹ÝȯÇÑ´Ù.
¹®¹ý: [oVal=].lastChild
ÄÚµå: document.write(oObj.lastChild; °á°ú:
ÄÚµå: if (oObj.lastChild) document.write(oObj.lastChild.innerText); °á°ú:
nextSibling ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ ´ÙÀ½ ÇüÁ¦(°°Àº ¸ðüÀÇ ´ÙÀ½ ÀÚ½Ä) °³Ã¼À» ¹ÝȯÇÑ´Ù.
¹®¹ý: [oVal=].nextSibling
ÄÚµå: document.write(oObj.nextSibling); °á°ú:
ÄÚµå: if (oObj.nextSibling) document.write(oObj.nextSibling.innerText); °á°ú:
nodeName ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ Æ¯Á¤ ³ëµå(node) ŸÀÔ À̸§À» ¹ÝȯÇÑ´Ù.
¹®¹ý: [sVal=].nodeName
ÄÚµå: document.write(oObj.nodeName); °á°ú:
nodeType ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ Æ¯Á¤ ³ëµå(node)ÀÇ Á¾·ù¸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: [iVal=].nodeType
ÄÚµå: document.write(oObj.nodeType); °á°ú:
nodeValue ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ Æ¯Á¤ ³ëµå(node)ÀÇ °ªÀ» ¹ÝȯÇÑ´Ù.
¹®¹ý: [oVal=].nodeValue
ÄÚµå: document.write(oObj.nodeValue); °á°ú:
ownerDocument ¼Ó¼º IE6
¢¡ ³ëµå(node)¿¡ ¿¬°üÇÑ document °³Ã¼¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¹®¹ý: .ownerDocument[=oVal]
ÄÚµå: document.write(oObj.ownerDocument); °á°ú:
ÄÚµå: document.write(oObj.ownerDocument.nodeName); °á°ú:
parentElement ¼Ó¼º IE
¢¡ ü°è ±¸Á¶»ó ºÎ¸ð ¿¤·¹¸àÆ® °³Ã¼¸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: [oVal=].parentElement
ÄÚµå: document.write(oObj.parentElement); °á°ú:
ÄÚµå: document.write(oObj.parentElement.nodeName); °á°ú:
parentNode ¼Ó¼º IE
¢¡ ±¸Á¶»ó ºÎ¸ð ¿¤·¹¸àÆ® °³Ã¼¸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: [oVal=].parentNode
ÄÚµå: document.write(oObj.parentNode); °á°ú:
ÄÚµå: document.write(oObj.parentNode.nodeName); °á°ú:
parentTextEdit ¼Ó¼º IE
¢¡ ±¸Á¶»ó ¿øº» °³Ã¼¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Â ¿ë±â °³Ã¼¼Ó¿¡¼­ TextRange °³Ã¼¸¦ »ý¼ºÇÒ ¼ö ÀÖ´Â ¿ë±â °³Ã¼¸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: [oVal=].parentTextEdit
ÄÚµå: document.write(oObj.parentTextEdit); °á°ú:
previousSibling ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ ´ÙÀ½ ÇüÁ¦(°°Àº ¸ðüÀÇ ´ÙÀ½ ÀÚ½Ä) °³Ã¼À» ¹ÝȯÇÑ´Ù.
¹®¹ý: [oVal=].previousSibling
ÄÚµå: document.write(oObj.previousSibling); °á°ú:
ÄÚµå: if (oObj.previousSibling) document.write(oObj.previousSibling.innerText); °á°ú:
readyState ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ ÇöÀç »óŸ¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: [sVal=].readyState
ÄÚµå: document.write(oObj.readyState); °á°ú:
ÄÚµå: <SPAN id=SwRS></SPAN>&nbsp;<BUTTON onclick="SwRS.innerText=oObj.readyState">Ŭ¸¯</BUTTON> °á°ú:  
scopeName ¼Ó¼º IE
¢¡ ¿¤·¹¸àÆ® °³Ã¼¸¦ À§ÇØ Á¤ÀÇµÈ namespace¸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: [sVal=].scopeName
ÄÚµå: document.write(oObj.scopeName); °á°ú:
scrollHeight ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ ½ºÅ©·Ñ(È­¸é±¼¸²) ³ôÀ̸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: [iVal=].scrollHeight
ÄÚµå: document.write(oObj.scrollHeight); °á°ú:
scrollLeft ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ ¿ÞÂÊ ¸ð¼­¸®¿Í ÇöÀç À©µµ¿ìÀÇ ³»¿ëÀÌ º¸ÀÌ´Â °¡Àå ¿ÞÂÊ À§Ä¡¿ÍÀÇ °Å¸®¸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¹®¹ý: [iVal=].scrollLeft
ÄÚµå: document.write(oObj.scrollLeft); °á°ú:
scrollTop ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ À§ÂÊ ¸ð¼­¸®¿Í ÇöÀç À©µµ¿ìÀÇ ³»¿ëÀÌ º¸ÀÌ´Â °¡Àå À§ÂÊ À§Ä¡¿ÍÀÇ °Å¸®¸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¹®¹ý: [iVal=].scrollTop
ÄÚµå: document.write(oObj.scrollTop); °á°ú:
scrollWidth ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ ½ºÅ©·Ñ(È­¸é±¼¸²) ³Êºñ¸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: [iVal=].scrollWidth
ÄÚµå: document.write(oObj.scrollWidth); °á°ú:
sourceIndex ¼Ó¼º IE
¢¡ ¼Ò½º ¼ø¼­¿¡¼­ ¹®¼­ÀÇ all Ä÷º¼Ç¿¡ ³ªÅ¸³ª´Â °³Ã¼ÀÇ À§Ä¡¸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: [iVal=].sourceIndex
ÄÚµå: document.write(oObj.sourceIndex); °á°ú:
ÄÚµå: document.write(document.all(oObj.sourceIndex).nodeName); °á°ú:
src ¼Ó¼º IE (src="urlVal"> ¾ÖÆ®¸®ºäÆ®)
¢¡ ½ºÅ©¸³Æ® ÄÚµå µ¥ÀÌÅÍ°¡ ÀÖ´Â ¿ÜºÎ ¿¬°á ÆÄÀÏÀÇ ÁÖ¼Ò(URL)¸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: [sVal=].src
ÄÚµå: document.write(document.scripts[0].src); °á°ú:
tagName ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ Å±×(tag) À̸§À» ¹ÝȯÇÑ´Ù.
¹®¹ý: [sVal=].tagName
ÄÚµå: document.write(oObj.tagName); °á°ú:
tagUrn ¼Ó¼º IE
¢¡ °³Ã¼ÀÇ namespace ¼±¾ð¿¡¼­ ¼³Á¤µÈ ÁÖ¼Ò(URN: Uniform Resource Name)¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¹®¹ý: .tagUrn[=sVal]
ÄÚµå: document.write(oObj.tagUrn); °á°ú:
text ¼Ó¼º IE (text="clrVal"> ¾ÖÆ®¸®ºäÆ®)
¢¡ ¹®¼­ÀÇ ±ÛÀÚ»ö»óÀ» rrggbb »ö»óÀ̳ª »ö»ó¸íĪÀ¸·Î ¹ÝȯÇϰųª ÁöÁ¤ÇÑ´Ù.
¹®¹ý: .text[=colorVal]
ÄÚµå: document.write(oObj.text); °á°ú:
type ¼Ó¼º IE (type="sVal"> ¾ÖÆ®¸®ºäÆ®)
¢¡ ½ºÅ©¸³Æ® ¿£Áø¿¡ ¿¬°üµÈ MIME ŸÀÔÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¹®¹ý: .type[=sVal]
ÄÚµå: document.write(oObj.type); °á°ú:
uniqueID ¼Ó¼º IE
¢¡ ÀÚµ¿ÀûÀ¸·Î »ý¼ºµÈ °³Ã¼ÀÇ À¯ÀÏÇÑ ÀνÄÀÚ ¹®ÀÚ¿­À» ¹ÝȯÇÑ´Ù.
¹®¹ý: [sVal=].uniqueID
ÄÚµå: document.write(oObj.uniqueID); °á°ú:

stylescript
{background-position-x:val} obj.style.backgroundPositionX[=val]
¢¡ backgroundPosition ¼Ó¼ºÀÇ x ÁÂÇ¥¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
{background-position-y:val} obj.style.backgroundPositionY[=val]
¢¡ backgroundPosition ¼Ó¼ºÀÇ y ÁÂÇ¥¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
{behavior:val} obj.style.behavior[=val]
¢¡ DHTML behaviorÀÇ ¼Ò°³ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
{layout-grid:val} obj.style.layoutGrid[=val]
¢¡ ¹®ÀÚµéÀÇ ·¹À̾ƿôÀ» ÁöÁ¤ÇÏ´Â ¹®¼­ ±×¸®µå(grid) ¼Ó¼ºµéÀ» ÀÏ°ýÀûÀ¸·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
{layout-grid-mode:val} obj.style.layoutGridMode[=val]
¢¡ ÅؽºÆ® ·¹À̾ƿô ±×¸®µå¿¡ °¡·Î, ¼¼·Î°¡ »ç¿ëµÇ¾ú´Â°¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù
¾ø½¿ obj.style.pixelBottom[=val]
¢¡ °³Ã¼ÀÇ ¾Æ·¡ÂÊ À§Ä¡¸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¾ø½¿ obj.style.pixelHeight[=val]
¢¡ °³Ã¼ÀÇ ³ôÀ̸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¾ø½¿ obj.style.pixelLeft[=val]
¢¡ °³Ã¼ÀÇ ¿ÞÂÊ À§Ä¡¸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¾ø½¿ obj.style.pixelRight[=val]
¢¡ °³Ã¼ÀÇ ¿À¸¥ÂÊ À§Ä¡¸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¾ø½¿ obj.style.pixelTop[=val]
¢¡ °³Ã¼ÀÇ À§ÂÊ À§Ä¡¸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¾ø½¿ obj.style.pixelWidth[=val]
¢¡ °³Ã¼ÀÇ ³Êºñ¸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¾ø½¿ obj.style.posBottom[=val]
¢¡ bottom ¾ÖÆ®¸®ºäÆ®·Î ÁöÁ¤µÈ ´ÜÀ§·Î °³Ã¼ÀÇ ¾Æ·¡ÂÊ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¾ø½¿ obj.style.posHeight[=val]
¢¡ height ¾ÖÆ®¸®ºäÆ®·Î ÁöÁ¤µÈ ´ÜÀ§·Î °³Ã¼ÀÇ ³ôÀ̸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¾ø½¿ obj.style.posLeft[=val]
¢¡ left ¾ÖÆ®¸®ºäÆ®·Î ÁöÁ¤µÈ ´ÜÀ§·Î °³Ã¼ÀÇ ¿ÞÂÊ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¾ø½¿ obj.style.posRight[=val]
¢¡ right ¾ÖÆ®¸®ºäÆ®·Î ÁöÁ¤µÈ ´ÜÀ§·Î °³Ã¼ÀÇ ¿À¸¥ÂÊ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¾ø½¿ obj.style.posTop[=val]
¢¡ top ¾ÖÆ®¸®ºäÆ®·Î ÁöÁ¤µÈ ´ÜÀ§·Î °³Ã¼ÀÇ À§ÂÊ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¾ø½¿ obj.style.posWidth[=val]
¢¡ width ¾ÖÆ®¸®ºäÆ®·Î ÁöÁ¤µÈ ´ÜÀ§·Î °³Ã¼ÀÇ ³Êºñ¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
{text-autospace:val} obj.style.textAutospace[=val]
¢¡ Á¶Á¤µÈ ¹®ÀÚ¸¦ À§ÇÑ ÀÚµ¿ ¹®ÀÚ °£°Ý ¸ÂÃ߱⸦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
{text-underline-position:val} obj.style.textUnderlinePosition[=val]
¢¡ °³Ã¼ÀÇ textDecoration ¼Ó¼ºÀÌ 'underline'·Î ¼³Á¤µÈ °æ¿ì ¹ØÁÙÀÇ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

¸Þ¼­µå¼³¸í
addBehavior ¿¤·¹¸àÆ®¿¡ behavior¸¦ Ãß°¡ÇÑ´Ù.
applyElement °³Ã¼¸¦ ´Ù¸¥ ¿¤·¹¸àÆ®ÀÇ ÀÚ½ÄÀ̳ª ¸ðü °³Ã¼·Î ¸¸µç´Ù.
attachEvent IE - À̺¥Æ®¿¡ ƯÁ¤ ±â´ÉÀ» ¹­¾î, ±â´ÉÇÔ¼ö°¡ °³Ã¼¿¡¼­ À̺¥Æ®°¡ ¹ß»ýµÇ¸é ¾ðÁ¦³ª È£ÃâµÇ°Ô ÇÑ´Ù.
À̺¥Æ®ÀÇ Á¦°Å´Â detachEvent¿¡¼­ ÇÑ´Ù. ¹Ýȯ°ªÀº ºÎ¿ï°ªÀÌ´Ù.
¹®¹ý: [bVal=].object.attachEvent(event,functObj)
event´Â Çʼö¿ä¼ÒÀÌ°í, Ç¥ÁØ À̺¥Æ® ¹®ÀÚ¿­ÀÌ´Ù. functObjµµ Çʼö¿ä¼ÒÀÌ°í À̺¥Æ®°¡ ¹ß»ýµÇ¸é È£ÃâµÉ ±â´ÉÇÔ¼öÀÌ´Ù.
ÄÚµå: function callFunc(){alert('ondblclick À̺¥Æ® ¹ß»ý')}document.attachEvent('ondblclick',callFunc)
°á°ú: // ¹®¼­ À§ ¾Æ¹«µ¥¼­³ª ´õºíŬ¸¯ ÇØ º¸¶ó.
ÄÚµå:<INPUT type=button value="attachEvent Àç¼³Á¤" onclick="document.detachEvent('ondblclick',callFunc);document.attachEvent('ondblclick',callFunc)"></SPAN> °á°ú:
clearAttributes °³Ã¼ÀÇ ¸ðµç ¾ÖÆ®¸®ºäÆ®µé°ú °ªµéÀ» »èÁ¦ÇÑ´Ù.
cloneNode ¹®¼­ °èÅëµµ·ÎºÎÅÍ °³Ã¼ÀÇ ÂüÁ¶¸¦ º¹»çÇÑ´Ù.
componentFromPoint ¾î¶² À̺¥Æ®¿¡¼­ ÁöÁ¤µÈ ÁÂÇ¥¿¡ À§Ä¡ÇÑ ÄÞÆ÷³ÙÆ®¸¦ ¹ÝȯÇÑ´Ù.
contains °³Ã¼ ¼Ó¿¡ ÁÖ¾îÁø ¿¤·¹¸àÆ®°¡ Àִ°¡¸¦ Á¡°ËÇÑ´Ù.
detachEvent IE5 - attachEvent À̺¥Æ®·Î ÷ºÎµÈ À̺¥Æ®¸¦ Á¦°ÅÇÑ´Ù. ¹Ýȯ°ªÀº ¾ø´Ù.
¹®¹ý: .detachEvent(event,funcion)
ÄÚµå: <INPUT type=button value="detachEvent" onclick="document.detachEvent('ondblclick',callFunc)"></SPAN>
°á°ú: // Ŭ¸¯ ÈÄ¿¡´Â attachEvent¿¡¼­ ¼³Á¤µÈ À̺¥Æ®°¡ Á¦°ÅµÈ´Ù. Á¦°Å ÈÄ ´õºíŬ¸¯ÇØ º¸¶ó.
dragDrop ondragstart À̺¥Æ®¸¦ ½ÃÀÛÇÑ´Ù.
fireEvent °³Ã¼¿¡¼­ ÁöÁ¤ÇÑ À̺¥Æ®¸¦ ¹ß»ý½ÃŲ´Ù.
getAdjacentText °³Ã¼ÀÇ ÀÎÁ¢ ¹®ÀÚ¿­À» ¹ÝȯÇÑ´Ù.
getAttribute ÁöÁ¤µÈ ¾ÖÆ®¸®ºäÆ®ÀÇ °ªÀ» ¹ÝȯÇÑ´Ù.
getAttributeNode IE6 attribute.name¼Ó¼ºÀ» ÂüÁ¶ÇÏ´Â attribute °³Ã¼¸¦ ¹ÝȯÇÑ´Ù.
getElementsByTagName ÁöÁ¤µÈ ¿¤·¹¸àÆ®ÀÇ À̸§¿¡ ¸Â´Â °³Ã¼µéÀÇ Ä÷º¼ÇÀ» ¹ÝȯÇÑ´Ù.
hasChildNodes °³Ã¼°¡ Àڽݳü¸¦ °¡Áö°í °¡Áö°í Àִ°¡¸¦ ³ªÅ¸³»´Â °ªÀ» ¹ÝȯÇÑ´Ù.
insertAdjacentElement ÁöÁ¤ÇÑ À§Ä¡¿¡ ¿¤·¹¸àÆ®¸¦ »ðÀÔÇÑ´Ù.
mergeAttributes ÁöÁ¤µÈ °³Ã¼¿¡ ¸ðµç Àбâ/¾²±â ¾ÖÆ®¸®ºäÆ®¸¦ º¹»çÇÑ´Ù.
normalize IE6 °³Ã¼ÀÇ ÀÎÁ¢ TextNode °³Ã¼¸¦ ÅëÇÕÇÏ¿© ¹®¼­ °³Ã¼ ¸ðµ¨À» Á¤»óÈ­ÇÑ´Ù.
removeAttribute °³Ã¼·Î ºÎÅÍ ¾ÖÆ®¸®ºäÆ®¸¦ Á¦°ÅÇÑ´Ù.
removeAttributeNode IE6 °³Ã¼·Î ºÎÅÍ ¾ÖÆ®¸®ºäÆ® °³Ã¼ ³ëµå¸¦ Á¦°ÅÇÑ´Ù.
removeBehavior °³Ã¼·ÎºÎÅÍ behavior¸¦ Á¦°ÅÇÑ´Ù.
replaceAdjacentText °³Ã¼¿¡ ÀÎÁ¢ ¹®ÀÚ¿­À» ±³Ã¼ÇÑ´Ù.
setAttribute ÁöÁ¤µÈ ¾ÖÆ®¸®ºäÆ®¸¦ ¼³Á¤ÇÑ´Ù.
setAttributeNode IE6 °³Ã¼ÀÇ ºÎºÐÀ¸·Î ¾ÖÆ®¸®ºäÆ® °³Ã¼ ³ëµå¸¦ ¼³Á¤ÇÑ´Ù.
swapNode ¹®¼­ °èÅëµµ¿¡¼­ µÎ °³Ã¼ÀÇ À§Ä¡¸¦ ¼­·Î ¹Ù²Û´Ù.

À̺¥Æ®¼³¸í
onload ¿¹Á¦ IE3.02 NS2 °³Ã¼°¡ ºÎ¶ó¿ìÀú¿¡ ·ÎµùÀÌ ¿Ï·áµÇ¸é ¹Ù·Î ¹ß»ýÇÑ´Ù.
¹®¹ý: .onload='JsCode'
onpropertychange °³Ã¼ÀÇ ¼Ó¼ºÀ» º¯°æ¹ß»ýÇÑ´Ù.
onreadystatechange °³Ã¼ÀÇ Áغñ»óÅÂ(readyState) ¼Ó¼ºÀ» º¯°æ½ÃÅ°¸é ¹ß»ýÇÑ´Ù.

Behavior¼³¸í
clientCaps Explorer¿¡ ´ëÇÑ Á¤º¸¸¦ Á¦°øÇÏ°í ¿äû¿¡ ÀÇÇÏ¿© ºê¶ó¿ìÀúÀÇ ÄÞÆ÷³ÙÆ®¸¦ ¼³Ä¡ÇÏ´Â ¹æ¹ý´Ã Á¦°øÇÑ´Ù.
download ÆÄÀÏÀ» ´Ù¿î·ÎµåÇÏ°í ¿Ï·áµÇ¸é ¿Ï·á¸¦ ¾Ë·ÁÁÖ´Â ±â´ÉÀ» °®°íÀÖ´Ù.
homePage »ç¿ëÀÚÀÇ È¨ÆäÀÌÁö¿¡ ´ëÇÑ Á¤º¸¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Ù.
saveSnapshot °³Ã¼°¡ À¥ÆäÀÌÁö°¡ ÀúÀåµÉ ¶§ µ¥ÀÌÅ͸¦ À¯ÁöÇÏ°Ô ÇÑ´Ù.

XML °³Ã¼ ¿¹Á¦

´ÙÀ½ ½Ã³ª¸®¿À ÄÚµå´Â ¿À·ù°¡ ¹ß»ýÇÑ´Ù.

<SCRIPT language="XML" id="xmlObj">
<CLASS>
<DISPLAYAREA>Ç¥½Ã ³»¿ë.</DISPLAYAREA>
<TIMEAREA>Ç¥½Ã ½Ã°£ 1 ½Ã°£</TIMEAREA>
</CLASS>
</SCRIPT>
<SCRIPT language="Javascript">
function doShow(){
  str='document.all["xmlObj"].XMLDocument.readyState='+document.all['xmlObj'].XMLDocument.readyState+'<BR>';
  str+='document.all["xmlObj"].XMLDocument.nodeName='+document.all['xmlObj'].XMLDocument.nodeName+'<BR>';
  str+='document.all["xmlObj"].XMLDocument.text='+document.all['xmlObj'].XMLDocument.text;
  showA.innerHTML=str;
}
</SCRIPT>
<BUTTON onclick="doShow()">XML Data Island ¿¹Á¦</BUTTON>
<DIV id=showA>°á°ú Ç¥½Ãâ</DIV>

XML data Áö¿ª(island)ÀÌ SCRIPT °³Ã¼ÀÇ language ¼Ó¼ºÀÌ ÁöÁ¤µÇ¾î ¸ÕÀú ³ª¿À¹Ç·Î MSHTMLÀº getName ±â´ÉÇÔ¼ö¸¦ XML¿¡¼­ ½ÃµµÇÏ°í ½ÇÆÐÇÒ °ÍÀÌ´Ù. À̸¦ ¼öÁ¤Çϱâ À§ÇÏ¿© SCRIPT °³Ã¼ÀÇ ¼ø¼­¸¦ ´ÙÀ½°ú °°ÀÌ º¯°æÇÑ´Ù.

<BUTTON
  onclick="window.open('../object/exp/wXMLDocument.html','_new',
    'top=100,left=100,width=600,height=150')">XML Data Island ¿¹Á¦</BUTTON>

../object/exp/wXMLDocument.html
<HTML>
<HEAD>
<SCRIPT language="Javascript">
function doShow(){
  str='document.all["xmlObj"].XMLDocument.readyState='+document.all['xmlObj'].XMLDocument.readyState+'<BR>';
  str+='document.all["xmlObj"].XMLDocument.nodeName='+document.all['xmlObj'].XMLDocument.nodeName+'<BR>';
  str+='document.all["xmlObj"].XMLDocument.text='+document.all['xmlObj'].XMLDocument.text;
  showA.innerHTML=str;
}
</SCRIPT>
<SCRIPT language="XML" id="xmlObj">
<CLASS>
<DISPLAYAREA>Ç¥½Ã ³»¿ë.</DISPLAYAREA>
<TIMEAREA>Ç¥½Ã ½Ã°£ 1 ½Ã°£</TIMEAREA>
</CLASS>
</SCRIPT>
</HEAD>
<BODY>
<DIV id="showA" style="height:3.5em">°á°ú Ç¥½Ãâ</DIV>
<P align=center>
<BUTTON onclick="doShow()">XML Data Island Ç¥½Ã</BUTTON>
<BUTTON onclick="self.close()">¿¹Á¦ â´Ý±â</BUTTON>
</P>
</BODY>
</HTML>