¸ðü select °³Ã¼ ¼Ó¿¡¼ ¸ð¾çÀ¸·Î Ç®´Ù¿î ¹Ú½º »ç¿ëÀÚ ¼±Åà ÀÔ·ÂÇʵ带 ÂüÁ¶ÇÑ´Ù
Script | [propVal=]formObj...propName; | |
HTML | propName="propVal">innerString |
elements ¹è¿º¯¼öÀÇ ÇØ´ç element°¡ selectÀÇ °æ¿ì¿¡¸¸ ÇØ´çµÈ´Ù.
¾Æ·¡ ¼Ó¼ºµé ÁßÀÇ ÇϳªÀÌ´Ù.
»ç¿ëÀÚ°¡ ¿©·¯°³ÀÇ ¼±ÅÃÀÌ °¡´ÉÇÑ Ç׸ñµé Áß¿¡¼ ÇÑ°³ ȤÀº ¿©·¯°³ÀÇ Ç׸ñÀ» ¼±ÅÃÇÏ¿© ÀÎÅÍ·¢Æ¼ºê(Interactive)ÇÏ°Ô ¿øÇÏ´Â ±â´ÉÀ» ¼öÇàÇÏ°Ô Çϴµ¥ »ç¿ëµÈ´Ù.
Option °³Ã¼´Â form °³Ã¼(HTML <FORM> ű×) ¼ÓÀÇ select °³Ã¼(HTML <SELECT> ű×) ¼Ó¿¡¼ <OPTION> ű׷Π»ý¼ºµÈ´Ù.
<FORM>...<SELECT><OPTION>...</OPTION> <OPTION>...</OPTION>...</SELECT>...</FORM>
¶ÇÇÑ Javascript·Îµµ »ý¼º, Ç׸ñÃß°¡¸¦ ÇÒ ¼ö ÀÖ´Ù.
document.formObj.selectObj.optionObj[3]=new Option('¼±Åà 4','value4',true,true); document.formObj.selectObj.optionObj[4]=new Option('¼±Åà 5','value5')
»ý¼ºµÈ ¼±ÅÃÇ׸ñÀ» »èÁ¦ÇÒ ¼öµµ ÀÖ´Ù. history.go(0)·Î »õ·Î ·ÎµùÇØ¾ß ¹®¼¿¡ ¹Ý¿µµÈ´Ù.
document.formObj.selectObj.optionObj[3]=null; history.go(0);
ÇÑ°³ÀÇ form °³Ã¼ ¼Ó¿¡¼ select °³Ã¼¸¦ ¸¸µé°í, form.elements ¹è¿º¯¼ö¿¡ type ¼Ó¼ºÀÌ select·Î µî·ÏµÈ´Ù.
Option °³Ã¼´Â Á¶»óÀÎ form °³Ã¼¿¡ ¿¤·¹¸àÆ®(elements)ÀÇ ¹è¿º¯¼ö·Î ÀúÀåµÇ¾î ÀÖ´Â ¸ðü select °³Ã¼ÀÇ Option °³Ã¼µéÀÇ ¹è¿º¯¼ö(options)¸¦ ±¸¼ºÇÏ°í select.optionsÀ¸·Î È£ÃâµÉ ¼ö ÀÖ´Ù.Ç׸ñ Áß¿¡¼ÀÇ ¼±ÅÃÀº ½ºÅ©·ÑÇÏ¿© ÃÊÁ¡À» ÇØ´ç Ç׸ñ¿¡ ÁÖ¸é µÇ´Âµ¥, Javascript·Î ÃʱⰪÀ¸·ÎÀÇ ¼±ÅÃÀº Àμö defaultSelected ¼Ó¼ºÀÌ »ç¿ëµÇ°í, Àμö selected ¼Ó¼ºÀº º¹¼ö ¼±Åÿ¡ »ç¿ëµÈ´Ù.(º¹¼ö¼±ÅÃÀº <SELECT multiple>)
IE5 ÀÌÈÄ, OPTION ¿¤·¹¸àÆ®´Â all Ä÷º¼Ç¿¡ Æ÷ÇԵǾú´Ù. ÀÌÀü ¹öÀü¿¡¼´Â SELECT ¿¤·¹¸àÆ®¿¡¼ options Ä÷º¼ÇÀ» ÅëÇؼ Á¢¼ÓÇÒ ¼ö ÀÖ´Ù.
OPTION ¿¤·¹¸àÆ®´Â µ¿ÀÏÇÑ À©µµ¿ìÀÇ OPTION ¿¤·¹¸àÆ®µéÀÌ »ý¼ºÇÑ SELECT ¿¤·¹¸àÆ® ¼Ó¿¡¸¸ Ãß°¡ÇÒ ¼ö ÀÖ´Ù.
background-color¿Í color¸¦ Á¦¿ÜÇÏ°í´Â optionÀÇ style °³Ã¼¸¦ ÅëÇÑ ÁöÁ¤Àº ¹«½ÃµÈ´Ù.
SELECT ¿¤·¹¸àÆ®¿¡¼ ÀüüÀûÀ¸·Î ÁöÁ¤µÈ ½ºÅ¸ÀÏÀº °³º° option¿¡¼ÀÇ ÁöÁ¤À¸·Î µ¤¾î¾º¿ì±â µÈ´Ù.
ÀÌ °³Ã¼´Â ½ºÅ©¸³Æ®¸¦ Æ÷ÇÔÇÏ¿© IE3.0ºÎÅÍ Àû¿ëµÈ´Ù.
ÀÌ ¿¤·¹¸àÆ®´Â ºí·°¸ðµåÀÌ´Ù.
ÀÌ ¿¤·¹¸àÆ®´Â Á¾·áű׸¦ ÇÊ¿ä·Î ÇÏÁö ¾Ê´Â´Ù.
ÀÌ °³Ã¼´Â (¿µ¹®)HTML3.2¿¡¼ Á¤ÀǵǾú´Ù.
¼³¸íÀ» À§ÇÑ ¿¹Á¦
<FORM name="formObj"> <SELECT name="selectObj onchange="showOpt.innerText='selectedIndex='+this.selectedIndex""> <OPTION name="optionName1" value="option Value 1">¼±ÅûçÇ× 1</option> <OPTION name="optionName2" value="option Value 2">¼±ÅûçÇ× 2</option> <OPTION name="optionName3" value="option Value 3" selected class=blue style="behavior:url(../public/hilite.htc)" dir=ltr lang=ko language=javascript>¼±ÅûçÇ× 3</option> <OPTION name="optionName4" value="option Value 4">¼±ÅûçÇ× 4</option> </SELECT> <SPAN id=showOpt> </SPAN> </FORM> <SCRIPT>oObj=formObj.selectObj(2);</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> |
°³Ã¼ | ¼³¸í | °á°ú |
---|---|---|
currentStyle | °øÅë ½ºÅ¸ÀϽ¬Æ®, ÀζóÀÎ ½ºÅ¸ÀÏ HTML ¾ÖÆ®¸®ºäÆ®µîÀ¸·Î ÁöÁ¤ÇÑ °³Ã¼ÀÇ Ä«½ºÄÉÀ̵ù Çü½Ä°ú ½ºÅ¸Àϵé ÂüÁ¶ÇÑ´Ù. | |
<SCRIPT>document.write(oObj.currentStyle.color)</SCRIPT> | ||
runtimeStyle | µ¤¾î ¾º¿öÁø ÃÖÁ¾ °øÅë ½ºÅ¸ÀϽ¬Æ®, ÀζóÀÎ ½ºÅ¸ÀÏ HTML ¾ÖÆ®¸®ºäÆ®µîÀ¸·Î ÁöÁ¤ÇÑ °³Ã¼ÀÇ Ä«½ºÄÉÀ̵ù Çü½Ä°ú ½ºÅ¸Àϵé ÂüÁ¶ÇÑ´Ù. | |
<BUTTON onclick="oObj.runtimeStyle.color='red'">Àû»öÀ¸·Î</BUTTON> ´ÜÃ߸¦ Ŭ¸¯ÇÏ°í ¿¹Á¦ÀÇ »ö»óÀ» È®ÀÎÇ϶ó. |
||
style | °³Ã¼ÀÇ ÇöÀç ¸ðµç °¡´ÉÇÑ ÀζóÀÎ ½ºÅ¸ÀÏ ¼³Á¤µéÀ» ÂüÁ¶ÇÑ´Ù. | |
<SCRIPT>document.write(oObj.style.cssText.length))</SCRIPT> |
style | script |
---|---|
{background-attachment:val} | obj.style.backgroundAttachment[=val] |
¢¡ ¹®¼ ¼ÓÀÇ ¹è°æ À̹ÌÁö¸¦ °³Ã¼¿¡ ¹è¿ ¹æ½ÄÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{background-color:val} | obj.style.backgroundColor[=val] |
¢¡ °³Ã¼ÀÇ ¹è°æ¿¡ ±ò¸®´Â »ö»óÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{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ÀÇ ¼Ò°³ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{clear:val} | obj.style.clear[=val] |
¢¡ °³Ã¼¿¡¼ ºÎµ¿(float)ºÎºÐÀÇ ¸éÀÇ ¿ÞÂÊ, ¿À¸¥ÂÊ È¤Àº ¾çÂÊÀ¸·Î Ç¥ÇöÀÌ Çã¿ëÇϴ°¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{color:val} | obj.style.color[=val] |
¢¡ °³Ã¼ÀÇ ±ÛÀÚ »ö»óÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{direction:val} | obj.style.direction[=val] |
¢¡ °³Ã¼ÀÇ Àд ¼ø¼¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
¾ø½¿ | obj.style.hasLayout |
¢¡ °³Ã¼°¡ ·¹À̾ƿô(layout)À» °¡Áö°í Àִ°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇÑ´Ù. | |
{height:val} | obj.style.height[=val] |
¢¡ °³Ã¼ÀÇ ³ôÀ̸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{layout-flow:val} | obj.style.layoutFlow[=val] |
¢¡ °³Ã¼ ³»¿ëÀÇ ¹æÇâÀ̳ª È帧¹æÇâÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{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'·Î ¼³Á¤µÈ °æ¿ì ¹ØÁÙÀÇ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{unicode-bidi:val} | obj.style.unicodeBidi[=val] |
¢¡ ¾ç¹æÇâ ¾Ë°í¸®Áò¿¡ °üÇÑ ±ò¸° ¼öÁØÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{width:val} | obj.style.width[=val] |
¢¡ °³Ã¼ÀÇ ³Êºñ¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{word-wrap:val} | obj.style.wordWrap[=val] |
¢¡ ³»¿ëÀÌ ¿ë±â °³Ã¼ÀÇ ¹üÀ§¸¦ ÃÊ°úÇÏ¸é ´Ü¾î¸¦ ÀÚ¸¦ °ÍÀΰ¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{writing-mode:val} | obj.style.writingMode[=val] |
¢¡ °³Ã¼¼Ó ³»¿ëÀÇ ¹æÇâÀ̳ª È帧À» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{zoom:val} | obj.style.zoom[=val] |
¢¡ °³Ã¼ÀÇ È®´ë ¹èÀ²À» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. |
¸Þ¼µå | ¼³¸í |
---|---|
add | IE4 -
ÁöÁ¤ÇÑ °³Ã¼ÀÇ Ç׸ñÀ» Ãß°¡ÇÑ´Ù. ¸ÕÀú ÇØ´ç ¿¤·¹¸àÆ®¸¦ »ý¼ºÇÏ°í °³Ã¼¸¦ Ãß°¡ÇÑ´Ù.
¹®¹ý: .add(addObj) |
addBehavior | ¿¤·¹¸àÆ®¿¡ behavior¸¦ Ãß°¡ÇÑ´Ù. |
appendChild | °³Ã¼ÀÇ Àڽݳü·Î ÇÑ ¿¤·¹¸àÆ®¸¦ Ãß°¡ÇÑ´Ù. |
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 | °³Ã¼ÀÇ ¸ðµç ¾ÖÆ®¸®ºäÆ®µé°ú °ªµéÀ» »èÁ¦ÇÑ´Ù. |
click |
IE NS
°³Ã¼¸¦ Ŭ¸¯ÇÏ´Â °Í°ú µ¿ÀÏÇÏ°Ô onclick À̺¥Æ®°¡ ¹ß»ýµÈ´Ù.
¹®¹ý: .click() |
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 °³Ã¼¸¦ ¹ÝȯÇÑ´Ù. |
getBoundingClientRect | TextRectangle °³Ã¼µéÀÇ Ä÷º¼Ç¿¡ ¿¬°áµÊÀ» ÁöÁ¤ÇÏ´Â °³Ã¼¸¦ ¹ÝȯÇÑ´Ù. |
getClientRects | °³Ã¼ÀÇ ³»¿ëÀ̳ª Ŭ¶óÀ̾ðÆ® ¹üÀ§(range)ÀÇ ¹èÄ¡(layout)¸¦ ±â¼úÇÏ´Â »ç°¢Çü(rectangle)µéÀÇ Ä÷º¼ÇÀ» ¹ÝȯÇÑ´Ù. °¢ »ç°¢ÇüÀº ÇÑ ÁÙÀÌ´Ù. |
getExpression | ÁÖ¾îÁø ¼Ó¼ºÀÇ Ç¥Çö(expression)À» ¹ÝȯÇÑ´Ù. |
hasChildNodes | °³Ã¼°¡ Àڽݳü¸¦ °¡Áö°í °¡Áö°í Àִ°¡¸¦ ³ªÅ¸³»´Â °ªÀ» ¹ÝȯÇÑ´Ù. |
insertAdjacentElement | ÁöÁ¤ÇÑ À§Ä¡¿¡ ¿¤·¹¸àÆ®¸¦ »ðÀÔÇÑ´Ù. |
insertAdjacentHTML | ¿¤·¹¸àÆ®ÀÇ ÁöÁ¤µÈ À§Ä¡¿¡ ÁÖ¾îÁø HTML ¹®ÀÚ¿À» »ðÀÔÇÑ´Ù. |
insertAdjacentText | ¿¤·¹¸àÆ®ÀÇ ÁöÁ¤µÈ À§Ä¡¿¡ ÁÖ¾îÁø ¹®ÀÚ¿À» »ðÀÔÇÑ´Ù. |
insertBefore | ¹®¼ °èÅëµµ¿¡¼ ¸ðü °³Ã¼ÀÇ ÀÚ½Ä ³ëµå·Î ¿¤·¹¸àÆ®¸¦ »ðÀÔÇÑ´Ù. |
mergeAttributes | ÁöÁ¤µÈ °³Ã¼¿¡ ¸ðµç Àбâ/¾²±â ¾ÖÆ®¸®ºäÆ®¸¦ º¹»çÇÑ´Ù. |
normalize | IE6 °³Ã¼ÀÇ ÀÎÁ¢ TextNode °³Ã¼¸¦ ÅëÇÕÇÏ¿© ¹®¼ °³Ã¼ ¸ðµ¨À» Á¤»óÈÇÑ´Ù. |
releaseCapture | ÇöÀç ¹®¼ÀÇ °³Ã¼·Î ºÎÅÍ ¸¶¿ì½º ĸÃĸ¦ Á¦°ÅÇÑ´Ù. |
remove | IE4 -
ÁöÁ¤ÇÑ °³Ã¼ÀÇ Ç׸ñÀ» »èÁ¦ÇÑ´Ù.
¹®¹ý: .remove(index) |
removeAttribute | °³Ã¼·Î ºÎÅÍ ¾ÖÆ®¸®ºäÆ®¸¦ Á¦°ÅÇÑ´Ù. |
removeAttributeNode | IE6 °³Ã¼·Î ºÎÅÍ ¾ÖÆ®¸®ºäÆ® °³Ã¼ ³ëµå¸¦ Á¦°ÅÇÑ´Ù. |
removeBehavior | °³Ã¼·ÎºÎÅÍ behavior¸¦ Á¦°ÅÇÑ´Ù. |
removeChild | °³Ã¼·ÎºÎÅÍ ÀÚ½Ä ³ëµå¸¦ Á¦°ÅÇÑ´Ù. |
removeExpression | ÁöÁ¤ÇÑ ¼Ó¼ºÀ¸·ÎºÎÅÍ Ç¥Çö(expression)À» Á¦°ÅÇÑ´Ù. |
removeNode | ¹®¼ °èÅëµµ¿¡¼ °³Ã¼¸¦ Á¦°ÅÇÑ´Ù. |
replaceAdjacentText | °³Ã¼¿¡ ÀÎÁ¢ ¹®ÀÚ¿À» ±³Ã¼ÇÑ´Ù. |
replaceChild | ÇöÀçÀÇ ÀÚ½Ä ¿¤·¹¸àÆ®¸¦ »õ·Î¿î ÀÚ½Ä ¿¤·¹¸àÆ®·Î ±³Ã¼ÇÑ´Ù. |
replaceNode | °³Ã¼¸¦ ´Ù¸¥ ¿¤·¹¸àÆ®·Î ±³Ã¼ÇÑ´Ù. |
setAttribute | ÁöÁ¤µÈ ¾ÖÆ®¸®ºäÆ®¸¦ ¼³Á¤ÇÑ´Ù. |
setAttributeNode | IE6 °³Ã¼ÀÇ ºÎºÐÀ¸·Î ¾ÖÆ®¸®ºäÆ® °³Ã¼ ³ëµå¸¦ ¼³Á¤ÇÑ´Ù. |
setCapture | ÇöÀç ¹®¼¿¡ ¼Ò¼ÓµÈ °³Ã¼ÀÇ ¸¶¿ì½º ĸÃĸ¦ ¼³Á¤ÇÑ´Ù |
setExpression | ÁöÁ¤µÈ °³Ã¼ÀÇ Ç¥Çö(expression)À» ¼³Á¤ÇÑ´Ù. |
swapNode | ¹®¼ °èÅëµµ¿¡¼ µÎ °³Ã¼ÀÇ À§Ä¡¸¦ ¼·Î ¹Ù²Û´Ù. |
watch¿Í unwatch | - NS select °³Ã¼´Â Object °³Ã¼ÀÇ watchNS¿Í unwatchNS ¸Þ¼µå¸¦ Àü´Þ¹Þ´Â´Ù. |
À̺¥Æ® | ¼³¸í |
---|---|
onlayoutcomplete | ¿øº» ¹®¼·ÎºÎÅÍ ³»¿ëÀ» ÇöÀçÀÇ LayoutRect °³Ã¼¿¡ ä¿ö³Ö±â°¡ ³¡³ª°í ÀμâÇϰųª Àμâ¹Ì¸®º¸±â¸¦ ½ÇÇàÇÏ¸é ¹ß»ýµÈ´Ù. |
onlosecapture | °³Ã¼°¡ ¸¶¿ì½º ĸÃÄ(capture)¸¦ ÇØÁ¦ÇÏ¸é ¹ß»ýÇÑ´Ù. |
onpropertychange | °³Ã¼ÀÇ ¼Ó¼ºÀ» º¯°æ¹ß»ýÇÑ´Ù. |
onreadystatechange | °³Ã¼ÀÇ Áغñ»óÅÂ(readyState) ¼Ó¼ºÀ» º¯°æ½ÃÅ°¸é ¹ß»ýÇÑ´Ù. |
onselectstart | °³Ã¼°¡ ¼±ÅõDZ⠽ÃÀÛÇÏ¸é ¹ß»ýÇÑ´Ù. |
ontimeerror | ÀϹÝÀûÀ¸·Î À¯È¿ÇÏÁö ¾ÊÀº °ªÀÇ °á°ú¿¡ ÀÇÇÏ¿©, ½Ã°£À» ÁöÁ¤ÇÏ´Â ¿À·ù°¡ ÀϾ¸é ¹ß»ýµÈ´Ù. |
Behavior | ¼³¸í |
---|---|
clientCaps | Explorer¿¡ ´ëÇÑ Á¤º¸¸¦ Á¦°øÇÏ°í ¿äû¿¡ ÀÇÇÏ¿© ºê¶ó¿ìÀúÀÇ ÄÞÆ÷³ÙÆ®¸¦ ¼³Ä¡ÇÏ´Â ¹æ¹ý´Ã Á¦°øÇÑ´Ù. |
download | ÆÄÀÏÀ» ´Ù¿î·ÎµåÇÏ°í ¿Ï·áµÇ¸é ¿Ï·á¸¦ ¾Ë·ÁÁÖ´Â ±â´ÉÀ» °®°íÀÖ´Ù. |
homePage | »ç¿ëÀÚÀÇ È¨ÆäÀÌÁö¿¡ ´ëÇÑ Á¤º¸¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Ù. |
httpFolder | ºê¶ó¿ìÀú°¡ Ç×ÇØÇÒ ¶§ Æú´õ¸¦ º¼¼ö ÀÖ´Â ½ºÅ©¸³Æ® ±â´ÉÀÌ Æ÷ÇԵǾî ÀÖ´Ù. |
saveFavorite | °³Ã¼°¡ Áñ°Üã±â(favorite)¿¡ µ¥ÀÌÅ͸¦ À¯ÁöÇÏ°Ô ÇÑ´Ù. |
saveHistory | °³Ã¼°¡ ¹æ¹®ÇÑ ±â·Ï(history)¿¡ µ¥ÀÌÅ͸¦ À¯ÁöÇÏ°Ô ÇÑ´Ù. |
time | (ºÒ·®) HTML ¿¤·¹¸àÆ®¿¡ È°¼º ½Ã°£À» Á¦°øÇÑ´Ù. |
time2 | HTML ¿¤·¹¸àÆ®³ª ¿¤·¹¸àÆ® ±¸·ì¿¡ È°¼º ½Ã°£À» Á¦°øÇÑ´Ù. |
userData | °³Ã¼°¡ µ¥ÀÌÅ͸¦ »ç¿ëÀÚ µ¥ÀÌÅÍ(user data)¿¡ À¯ÁöÇÏ°Ô ÇÑ´Ù. |
°³Ã¼ ¿¹Á¦
À§ ¿¹Á¦ ¼±Åðá°úÀ̹ǷΠ¼±ÅÃµé º¯°æÇϸç È®ÀÎÇØ º¸¶ó.
<SCRIPT> function fnChange(){ str='formObj.selectObj.selectedIndex='+formObj.selectObj.selectedIndex+'<BR>'; str+='formObj.selectObj.options[formObj.selectObj.selectedIndex].text='+ formObj.selectObj.options[formObj.selectObj.selectedIndex].text+'<BR><BR>'; for (i=0;i< formObj.selectObj.length;i++){ str+='formObj.selectObj.options['+i+'].text="'+formObj.selectObj.options[i].text+'" '; str+='formObj.selectObj.options['+i+'].selected='+formObj.selectObj.options[i].selected+'<BR>'; } showA.innerHTML=str; } </SCRIPT> <DIV id=showA>°á°ú Ç¥½Ãâ</DIV> <BUTTON onclick=fnChange()>Ŭ¸¯ÇÏ¿© À§ ¿¹Á¦ °á°ú º¸±â</BUTTON>
<SCRIPT> function doShow(){ selidx=fName.selName.selectedIndex; str='fName.selName.selectedIndex='+selidx+'<BR>'; str+='fName.selName.options('+selidx+').innerText='; str+=fName.selName.options(selidx).innerText+'<BR>'; str+='fName.selName.options('+selidx+').name='; str+=fName.selName.options(selidx).name+'<BR>'; str+='fName.selName.options('+selidx+').value='; str+=fName.selName.options(selidx).value+'<BR>'; str+='fName.selName.options('+selidx+').parentElement.label='; str+=fName.selName.options(selidx).parentElement.label+'<BR>'; str+='fName.selName.options('+selidx+').parentElement.name='; str+=fName.selName.options(selidx).parentElement.name+'<BR>'; showB.innerHTML=str; } </SCRIPT> <FORM name=fName> <SELECT name=selName onchange="doShow()"> <OPTGROUP label="°ú½Ç" id=optgroupObj1 name=fruitGroup> <OPTION name=optObj1 value=apple>»ç°ú</OPTION> <OPTION name=optObj2 value=peach selected>º¹¼þ¾Æ</OPTION> <OPTION name=optObj3 value=grape>Æ÷µµ</OPTION> </OPTGROUP> <OPTGROUP label="ä¼Ò" id=optgroupObj2 name=vegiGroup disabled> <OPTION name=optObj4 value=strawberry>µþ±â</OPTION> <OPTION name=optObj5 value=tomato>µµ¸¶µµ</OPTION> <OPTION name=optObj6 value=melon>¸á·Ð</OPTION> </OPTGROUP> </SELECT> </FORM> <DIV id=showB>°á°ú Ç¥½Ãâ</DIV>