ÀÚ½Ä Option °³Ã¼°ú ÇÔ²² ¸ð¾çÀÇ Ç®´Ù¿î¹Ú½º·Î »ç¿ëÀÚ°¡ µ¥ÀÌÅ͸¦ ¼±ÅÃÇÏ´Â ÀÔ·ÂÁ¦¾î¸¦ »ý¼ºÇÏ°í ÂüÁ¶ÇÑ´Ù.
Script | [propVal=]..propName; | |
HTML | propName="propVal">innerString |
¾Æ·¡ ¼Ó¼ºµé ÁßÀÇ ÇϳªÀÌ´Ù. ¸Þ¼µåµé, À̺¥Æ®Ã³¸®Àڵ鵵 ÀÌ¿¡ ÁØÇÑ´Ù.
»ç¿ëÀÚ°¡ ¿©·¯ ¼±Åà Áß¿¡¼ ¼±ÅÃÇÏ¿© ÀÎÅÍ·¢Æ¼ºê(Interactive)ÇÏ°Ô ¿øÇÏ´Â ±â´ÉÀ» ¼öÇàÇÏ°Ô Çϴµ¥ »ç¿ëµÈ´Ù.
select °³Ã¼´Â <FORM> HTML ű׷Π»ý¼ºµÈ form °³Ã¼ ¼ÓÀÇ <SELECT> HTML ű׷Π»ý¼ºµÈ´Ù.
<FORM>...<SELECT><OPTION>...</OPTION> <OPTION>...</OPTION>...</SELECT>...</FORM>
»ý¼ºµÈ ÀÌµé °³Ã¼µéÀº ¸ðü form °³Ã¼¿¡¼ select °³Ã¼¸¦ ¸¸µé°í ¿¤·¹¸àÆ®(elements)ÀÇ ¹è¿º¯¼ö·Î ÀúÀåµÇ°í, È£ÃâµÉ ¼ö ÀÖ´Ù. elements ¹è¿º¯¼ö¿¡ type ¼Ó¼ºÀÌ selectÀ¸·Î µî·ÏµÈ´Ù.
select °³Ã¼ÀÇ ÀÚ½Ä ¿¤·¹¸àÆ®ÀÎ ¼±ÅûçÇ× <OPTION>...</OPTION>À¸·Î »ý¼ºµÇ´Â Option °³Ã¼µéÀÇ ¹è¿º¯¼ö(options)¸¦ Æ÷ÇÔÇÑ´Ù. ÀÌµé ¼±ÅûçÇ×ÀÇ ¹è¿º¯¼ö´Â select.options·Î È£Ãâ µÉ ¼ö ÀÖ´Ù.
form.select °³Ã¼´Â Àû¿ëµÉ ¼ö ÀÖ´Â ¼Ó¼º(property), ¸Þ¼µå(method)¿Í À̺¥Æ®Ã³¸®ÀÚ(event)¸¦ °¡Áú ¼ö ÀÖ´Ù.
ÀÌ °³Ã¼´Â ½ºÅ©¸³Æ®¸¦ Æ÷ÇÔÇÏ¿© IE3.0ºÎÅÍ Àû¿ëµÈ´Ù.
ÀÌ ¿¤·¹¸àÆ®´Â À©µµ¿ì¸¦ Á¦¾îÇÏ°í z-index¾ÖÆ®¸®ºäÆ®³ª zIndex ¼Ó¼ºÀ» Áö¿øÇÏÁö ¾Ê´Â´Ù.
ÀÌ ¿¤·¹¸àÆ®´Â ÀζóÀÎ ¿¤·¹¸àÆ®ÀÌ´Ù.
ÀÌ ¿¤·¹¸àÆ®´Â Á¾·áűװ¡ ÇÊ¿äÇÏ´Ù.
ÀÌ °³Ã¼´Â (¿µ¹®)HTML3.2¿¡¼ Á¤ÀǵǾú°í (¿µ¹®)DOMLevel 2(W3C Document Object Model)¿¡ Á¤ÀǵǾú´Ù.
¼³¸íÀ» À§ÇÑ ¿¹Á¦
Ä÷º¼Ç | ¼³¸í°ú ¿¹Á¦ ÄÚµå | °á°ú | Âü°í |
---|---|---|---|
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> | |||
options | °³Ã¼·Î ºÎÅÍ Option °³Ã¼µéÀÇ Ä÷º¼ÇÀ» ÂüÁ¶ÇÏ°í ¹ÝȯÇÑ´Ù. | ||
<SCRIPT>document.write(oObj.options.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 |
---|---|
{accelerator:val} | obj.style.accelerator[=val] |
¢¡ °³Ã¼°¡ ´ÜÃàÅ°¸¦ °¡Áö°í Àִ°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{background-color:val} | obj.style.backgroundColor[=val] |
¢¡ °³Ã¼ÀÇ ¹è°æ¿¡ ±ò¸®´Â »ö»óÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{behavior:val} | obj.style.behavior[=val] |
¢¡ DHTML behaviorÀÇ ¼Ò°³ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{bottom:val} | obj.style.bottom[=val] |
¢¡ °³Ã¼ ü°èµµ»ó ¾Æ·¡ÂÊ °³Ã¼¿ÍÀÇ °Å¸®¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{clear:val} | obj.style.clear[=val] |
¢¡ °³Ã¼¿¡¼ ºÎµ¿(float)ºÎºÐÀÇ ¸éÀÇ ¿ÞÂÊ, ¿À¸¥ÂÊ È¤Àº ¾çÂÊÀ¸·Î Ç¥ÇöÀÌ Çã¿ëÇϴ°¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{clip:val} | obj.style.clip[=val] |
¢¡ °³Ã¼ÀÇ ¾î´À ºÎºÐÀ» º¸ÀÌ°Ô ÇÒ °ÍÀΰ¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{color:val} | obj.style.color[=val] |
¢¡ °³Ã¼ÀÇ ±ÛÀÚ »ö»óÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{direction:val} | obj.style.direction[=val] |
¢¡ °³Ã¼ÀÇ Àд ¼ø¼¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{display:val} | obj.style.display[=val] |
¢¡ °³Ã¼¸¦ µð½ºÇ÷¹ÀÌÇÒ °ÍÀΰ¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{font:val} | obj.style.font[=val] |
¢¡ °³Ã¼ÀÇ font ¼Ó¼ºµé Á¶ÇÕÇÏ¿© ¹ÝȯÇϰųª ¼³Á¤Çϰųª, »ç¿ëÀÚ ¼±È£ ±Û²ÃµéÀ» 6°³±îÁö ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{font-family:val} | obj.style.fontFamily[=val] |
¢¡ »ç¿ëÇÑ ±Û²ÃÀÇ À̸§µéÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{font-size:val} | obj.style.fontSize[=val] |
¢¡ °³Ã¼ ÅؽºÆ®¿¡¼ »ç¿ëÇÑ ±Û²ÃÀÇ Å©±â¸¦ ³ªÅ¸³»´Â ¼öÄ¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{font-style:val} | obj.style.fontStyle[=val] |
¢¡ °³Ã¼ÀÇ ±Û²Ã ÇüÅÂÀ» italic, normal, obliqueµîÀ¸·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{font-weight:val} | obj.style.fontWeight[=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] |
¢¡ ÅؽºÆ® ·¹À̾ƿô ±×¸®µå¿¡ °¡·Î, ¼¼·Î°¡ »ç¿ëµÇ¾ú´Â°¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù | |
{left:val} | obj.style.left[=val] |
¢¡ °³Ã¼ ü°èµµ»ó ¿ÞÂÊ °³Ã¼¿ÍÀÇ °Å¸®¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.. | |
{letter-spacing:val} | obj.style.letterSpacing[=val] |
¢¡ °³Ã¼ ¼Ó¿¡¼ ±ÛÀÚµé »çÀÌÀÇ °£°ÝÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{line-height:val} | obj.style.lineHeight[=val] |
¢¡ °³Ã¼ ¼Ó¿¡¼ ÁÙ°ú ¾Æ·¡ÁÙ°úÀÇ °Å¸®¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{padding:val} | obj.style.padding[=val] |
¢¡ °³Ã¼µé »çÀÌ, ±×µé¿¡ ¼Ò¼ÓµÈ ¸¶Áø, º¸´õ±îÁöÀÇ °£°ÝÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{padding-bottom:val} | obj.style.paddingBottom[=val] |
¢¡ °³Ã¼ÀÇ ¾Æ·¡ÂÊ º¸´õ¿Í ³»¿ë »çÀÌÀÇ °£°ÝÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{padding-left:val} | obj.style.paddingLeft[=val] |
¢¡ °³Ã¼ÀÇ ¿ÞÂÊ º¸´õ¿Í ³»¿ë »çÀÌÀÇ °£°ÝÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{padding-right:val} | obj.style.paddingRight[=val] |
¢¡ °³Ã¼ÀÇ ¿À¸¥ÂÊ º¸´õ¿Í ³»¿ë »çÀÌÀÇ °£°ÝÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{padding-top:val} | obj.style.paddingTop[=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 ¾ÖÆ®¸®ºäÆ®·Î ÁöÁ¤µÈ ´ÜÀ§·Î °³Ã¼ÀÇ ³ôÀ̸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{position:val} | obj.style.position[=val] |
¢¡ °³Ã¼ÀÇ À§Ä¡½ÃÅ´ ¹æ½ÄÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
¾ø½¿ | obj.style.posLeft[=val] |
¢¡ left ¾ÖÆ®¸®ºäÆ®·Î ÁöÁ¤µÈ ´ÜÀ§·Î °³Ã¼ÀÇ ¿ÞÂÊ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
¾ø½¿ | obj.style.posRight[=val] |
¢¡ right ¾ÖÆ®¸®ºäÆ®·Î ÁöÁ¤µÈ ´ÜÀ§·Î °³Ã¼ÀÇ ¿À¸¥ÂÊ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
¾ø½¿ | obj.style.posTop[=val] |
¢¡ top ¾ÖÆ®¸®ºäÆ®·Î ÁöÁ¤µÈ ´ÜÀ§·Î °³Ã¼ÀÇ À§ÂÊ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
¾ø½¿ | obj.style.posWidth[=val] |
¢¡ width ¾ÖÆ®¸®ºäÆ®·Î ÁöÁ¤µÈ ´ÜÀ§·Î °³Ã¼ÀÇ ³Êºñ¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{right:val} | obj.style.right[=val] |
¢¡ °³Ã¼ ü°èµµ»ó ¿À¸¥ÂÊ °³Ã¼¿ÍÀÇ °Å¸®¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{float:val} | obj.style.styleFloat[=val] |
¢¡ °³Ã¼¿¡¼ ¾î´À ¹æÇâÀ¸·Î ÅؽºÆ®°¡ È带 °ÍÀΰ¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{text-autospace:val} | obj.style.textAutospace[=val] |
¢¡ Á¶Á¤µÈ ¹®ÀÚ¸¦ À§ÇÑ ÀÚµ¿ ¹®ÀÚ °£°Ý ¸ÂÃ߱⸦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{text-decoration:val} | obj.style.textDecoration[=val] |
¢¡ °³Ã¼ ¼ÓÀÇ ¹®ÀÚ Àå½Ä(±ô¹Ú°Å¸², Áß°£ÁÙ, ÀÁÙ, ¾Æ·§ÁÙ)À» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
¾ø½¿ | obj.style.textDecorationBlink[=val] |
¢¡ °³Ã¼ÀÇ textDecoration ¼Ó¼º°ªÀÌ 'blink'·Î ¼³Á¤µÇ¾ú´Â°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
¾ø½¿ | obj.style.textDecorationLineThrough[=val] |
¢¡ °³Ã¼ÀÇ textDecoration ¼Ó¼º°ªÀÌ 'line-through'·Î ¼³Á¤µÇ¾ú´Â°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
¾ø½¿ | obj.style.textDecorationNone[=val] |
¢¡ °³Ã¼ÀÇ textDecoration ¼Ó¼º°ªÀÌ 'none'·Î ¼³Á¤µÇ¾ú´Â°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
¾ø½¿ | obj.style.textDecorationOverline[=val] |
¢¡ °³Ã¼ÀÇ textDecoration ¼Ó¼º°ªÀÌ 'overline'·Î ¼³Á¤µÇ¾ú´Â°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
¾ø½¿ | obj.style.textDecorationUnderline[=val] |
¢¡ °³Ã¼ÀÇ textDecoration ¼Ó¼º°ªÀÌ 'underline'·Î ¼³Á¤µÇ¾ú´Â°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{text-transform:val} | obj.style.textTransform[=val] |
¢¡ °³Ã¼ ¼Ó¿¡¼ ¹®ÀÚÀÇ º¯È¯ Ç¥Çö ¹æ½ÄÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{text-underline-position:val} | obj.style.textUnderlinePosition[=val] |
¢¡ °³Ã¼ÀÇ textDecoration ¼Ó¼ºÀÌ 'underline'·Î ¼³Á¤µÈ °æ¿ì ¹ØÁÙÀÇ À§Ä¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{top:val} | obj.style.top[=val] |
¢¡ °³Ã¼ ü°èµµ »ó ¹Ù·ÎÀ§ÀÇ °³Ã¼·ÎºÎÅÍÀÇ °Å¸®¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{unicode-bidi:val} | obj.style.unicodeBidi[=val] |
¢¡ ¾ç¹æÇâ ¾Ë°í¸®Áò¿¡ °üÇÑ ±ò¸° ¼öÁØÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{visibility:val} | obj.style.visibility[=val] |
¢¡ °³Ã¼ÀÇ ³»¿ëÀÌ µð½ºÇ÷¹ÀÌµÉ °ÍÀΰ¡¸¦¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{width:val} | obj.style.width[=val] |
¢¡ °³Ã¼ÀÇ ³Êºñ¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{word-spacing:val} | obj.style.wordSpacing[=val] |
¢¡ °³Ã¼ ¼Ó¿¡¼ ´Ü¾î°£ÀÇ °£°ÝÀ» Áõ°¡½ÃÅ°´Â Á¤µµ¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{word-wrap:val} | obj.style.wordWrap[=val] |
¢¡ ³»¿ëÀÌ ¿ë±â °³Ã¼ÀÇ ¹üÀ§¸¦ ÃÊ°úÇÏ¸é ´Ü¾î¸¦ ÀÚ¸¦ °ÍÀΰ¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. | |
{zoom:val} | obj.style.zoom[=val] |
¢¡ °³Ã¼ÀÇ È®´ë ¹èÀ²À» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. |
¸Þ¼µå | ¼³¸í |
---|---|
add | IE4 NS6
ÁöÁ¤ÇÑ °³Ã¼ÀÇ Ç׸ñÀ» Ãß°¡ÇÑ´Ù. areas,
controlRange, options Ä÷º¼Ç¿¡µµ °¡´ÉÇÏ´Ù.
¹®¹ý: .add(addObj) |
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> °á°ú: |
blur |
IE NS
°³Ã¼°¡ ÃÊÁ¡À» ÀÒ°í onblur À̺¥Æ®°¡ ¹ß»ýµÈ´Ù.
¹®¹ý: .blur() |
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 | °³Ã¼¿¡¼ ÁöÁ¤ÇÑ À̺¥Æ®¸¦ ¹ß»ý½ÃŲ´Ù. |
focus |
IE NS
ÁöÁ¤ÇÑ °³Ã¼¿¡ ÃÊÁ¡À» ÁÖ°í onfocusÀ̺¥Æ®¿¡ ÁöÁ¤ÇÑ Ã³¸®ÀÚ Äڵ带 ¼öÇàÇÑ´Ù.
¹®¹ý: .focus()
|
getAdjacentText | °³Ã¼ÀÇ ÀÎÁ¢ ¹®ÀÚ¿À» ¹ÝȯÇÑ´Ù. |
getAttribute | ÁöÁ¤µÈ ¾ÖÆ®¸®ºäÆ®ÀÇ °ªÀ» ¹ÝȯÇÑ´Ù. |
getAttributeNode | IE6 attribute.name¼Ó¼ºÀ» ÂüÁ¶ÇÏ´Â attribute °³Ã¼¸¦ ¹ÝȯÇÑ´Ù. |
getBoundingClientRect | TextRectangle °³Ã¼µéÀÇ Ä÷º¼Ç¿¡ ¿¬°áµÊÀ» ÁöÁ¤ÇÏ´Â °³Ã¼¸¦ ¹ÝȯÇÑ´Ù. |
getClientRects | °³Ã¼ÀÇ ³»¿ëÀ̳ª Ŭ¶óÀ̾ðÆ® ¹üÀ§(range)ÀÇ ¹èÄ¡(layout)¸¦ ±â¼úÇÏ´Â »ç°¢Çü(rectangle)µéÀÇ Ä÷º¼ÇÀ» ¹ÝȯÇÑ´Ù. °¢ »ç°¢ÇüÀº ÇÑ ÁÙÀÌ´Ù. |
getElementsByTagName | ÁöÁ¤µÈ ¿¤·¹¸àÆ®ÀÇ À̸§¿¡ ¸Â´Â °³Ã¼µéÀÇ Ä÷º¼ÇÀ» ¹ÝȯÇÑ´Ù. |
getExpression | ÁÖ¾îÁø ¼Ó¼ºÀÇ Ç¥Çö(expression)À» ¹ÝȯÇÑ´Ù. |
handleEvent |
- NS
°³Ã¼¿¡¼ ÁöÁ¤µÈ À̺¥Æ®¸¦ À§ÇÑ Ã³¸®ÀÚ¸¦ È£ÃâÇÑ´Ù .
¹®¹ý: .handleEvent('event') |
hasChildNodes | °³Ã¼°¡ Àڽݳü¸¦ °¡Áö°í °¡Áö°í Àִ°¡¸¦ ³ªÅ¸³»´Â °ªÀ» ¹ÝȯÇÑ´Ù. |
insertAdjacentElement | ÁöÁ¤ÇÑ À§Ä¡¿¡ ¿¤·¹¸àÆ®¸¦ »ðÀÔÇÑ´Ù. |
insertAdjacentHTML | ¿¤·¹¸àÆ®ÀÇ ÁöÁ¤µÈ À§Ä¡¿¡ ÁÖ¾îÁø HTML ¹®ÀÚ¿À» »ðÀÔÇÑ´Ù. |
insertAdjacentText | ¿¤·¹¸àÆ®ÀÇ ÁöÁ¤µÈ À§Ä¡¿¡ ÁÖ¾îÁø ¹®ÀÚ¿À» »ðÀÔÇÑ´Ù. |
insertBefore | ¹®¼ °èÅëµµ¿¡¼ ¸ðü °³Ã¼ÀÇ ÀÚ½Ä ³ëµå·Î ¿¤·¹¸àÆ®¸¦ »ðÀÔÇÑ´Ù. |
mergeAttributes | ÁöÁ¤µÈ °³Ã¼¿¡ ¸ðµç Àбâ/¾²±â ¾ÖÆ®¸®ºäÆ®¸¦ º¹»çÇÑ´Ù. |
normalize | IE6 °³Ã¼ÀÇ ÀÎÁ¢ TextNode °³Ã¼¸¦ ÅëÇÕÇÏ¿© ¹®¼ °³Ã¼ ¸ðµ¨À» Á¤»óÈÇÑ´Ù. |
releaseCapture | ÇöÀç ¹®¼ÀÇ °³Ã¼·Î ºÎÅÍ ¸¶¿ì½º ĸÃĸ¦ Á¦°ÅÇÑ´Ù. |
remove | IE4 NS6
Ä÷º¼ÇÀ¸·ÎºÎÅÍ ÁöÁ¤ÇÑ °³Ã¼ÀÇ Ç׸ñÀ» »èÁ¦ÇÑ´Ù.
¹®¹ý: .remove(index) |
removeAttribute | °³Ã¼·Î ºÎÅÍ ¾ÖÆ®¸®ºäÆ®¸¦ Á¦°ÅÇÑ´Ù. |
removeAttributeNode | IE6 °³Ã¼·Î ºÎÅÍ ¾ÖÆ®¸®ºäÆ® °³Ã¼ ³ëµå¸¦ Á¦°ÅÇÑ´Ù. |
removeBehavior | °³Ã¼·ÎºÎÅÍ behavior¸¦ Á¦°ÅÇÑ´Ù. |
removeChild | °³Ã¼·ÎºÎÅÍ ÀÚ½Ä ³ëµå¸¦ Á¦°ÅÇÑ´Ù. |
removeExpression | ÁöÁ¤ÇÑ ¼Ó¼ºÀ¸·ÎºÎÅÍ Ç¥Çö(expression)À» Á¦°ÅÇÑ´Ù. |
removeNode | ¹®¼ °èÅëµµ¿¡¼ °³Ã¼¸¦ Á¦°ÅÇÑ´Ù. |
replaceAdjacentText | °³Ã¼¿¡ ÀÎÁ¢ ¹®ÀÚ¿À» ±³Ã¼ÇÑ´Ù. |
replaceChild | ÇöÀçÀÇ ÀÚ½Ä ¿¤·¹¸àÆ®¸¦ »õ·Î¿î ÀÚ½Ä ¿¤·¹¸àÆ®·Î ±³Ã¼ÇÑ´Ù. |
replaceNode | °³Ã¼¸¦ ´Ù¸¥ ¿¤·¹¸àÆ®·Î ±³Ã¼ÇÑ´Ù. |
scrollIntoView | °³Ã¼¸¦ º¸±â°Ô ±¼¸²(scroll)ÇÏ°í À©µµ¿ìÀÇ ¸ÇÀ§³ª ¾Æ·¡¿¡ Á¤·ÄÇÑ´Ù. |
setActive | °³Ã¼¿¡ ÃÊÁ¡À» ÁÖÁö ¾ÊÀº »óÅ¿¡¼ È°¼ºÀ¸·Î ¼³Á¤ÇÑ´Ù. |
setAttribute | ÁöÁ¤µÈ ¾ÖÆ®¸®ºäÆ®¸¦ ¼³Á¤ÇÑ´Ù. |
setAttributeNode | IE6 °³Ã¼ÀÇ ºÎºÐÀ¸·Î ¾ÖÆ®¸®ºäÆ® °³Ã¼ ³ëµå¸¦ ¼³Á¤ÇÑ´Ù. |
setCapture | ÇöÀç ¹®¼¿¡ ¼Ò¼ÓµÈ °³Ã¼ÀÇ ¸¶¿ì½º ĸÃĸ¦ ¼³Á¤ÇÑ´Ù |
setExpression | ÁöÁ¤µÈ °³Ã¼ÀÇ Ç¥Çö(expression)À» ¼³Á¤ÇÑ´Ù. |
swapNode | ¹®¼ °èÅëµµ¿¡¼ µÎ °³Ã¼ÀÇ À§Ä¡¸¦ ¼·Î ¹Ù²Û´Ù. |
tags | IE4 -
°³Ã¼ÀÇ À̸§ÀÎ tagsÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¹®¹ý: .tags
ÄÚµå: document.write(formName.selectName.name+' / '+formName.selectName[0].name+' / '+document.forms(0).elements[0].tags('option').length)
°á°ú: |
urns | ÁöÁ¤µÈ behavior°¡ ÷ºÎµÈ ¸ðµç °³Ã¼µéÀÇ Ä÷º¼ÇÀ» ¹ÝȯÇÑ´Ù. |
À̺¥Æ® | ¼³¸í |
---|---|
onactivate | ¿¤·¹¸àÆ® °³Ã¼°¡ activeElement ¼Ó¼ºÀ¸·Î ¼³Á¤µÇ¸é ¹ß»ýÇÑ´Ù. |
onafterupdate | µ¥ÀÌÅÍ ¿øº»ÀÌ ÀÖ´Â °³Ã¼°¡ ¼º°øÀûÀ¸·Î ¾÷µ¥ÀÌÆ®µÇ¸é µ¥ÀÌÅ͸¦ °®´Â °³Ã¼¿¡ ¹ß»ýÇÑ´Ù. |
onbeforeactivate | IE6 ¿¤·¹¸àÆ® °³Ã¼°¡ activeElement ¼Ó¼ºÀ¸·Î ¼³Á¤µÇ±â ¹Ù·Î Àü¿¡ ¹ß»ýÇÑ´Ù. |
onbeforecut | ¹®¼·Î ºÎÅÍ ¼±ÅÃÇÑ ºÎºÐÀÇ À߶󳻱â Çϱ⠹ٷΠÀü¿¡ ¿øº» °³Ã¼¿¡ ¹ß»ýÇÑ´Ù. |
onbeforedeactivate | ¸ðü ¹®¼¿¡¼ activeElement ¼Ó¼ºÀÇ ¿¤·¹¸àÆ® °³Ã¼°¡ ÇöÀç °³Ã¼·Î ´Ù¸¥ °³Ã¼·Î º¯°æµÇ±â ¹Ù·Î Àü¿¡ ¹ß»ýÇÑ´Ù. |
onbeforeeditfocus | ÆíÁý °¡´ÉÇÑ °³Ã¼°¡ È°¼ºÈµÇ°Å³ª ÆíÁý °¡´ÉÇÑ ¿ë±â¿¡ Á¦¾î ¼±ÅÃÀÌ ÀÌ·ç¾î Áö±â ¹Ù·Î Àü¿¡ ¹ß»ýÇÑ´Ù. |
onbeforepaste | ½Ã½ºÅÛ Å¬¸³º¸µå(À߶󳽰ųª º¹»çÇÑ ³»¿ëÀÌ ÀÖ´Â)·ÎºÎÅÍ ¹®¼ÀÇ ¸ñÇ¥°³Ã¼¿¡ ºÙ¿© ³Ö±â ¹Ù·Î Àü¿¡ ¹ß»ýÇÑ´Ù. |
onbeforeupdate | ¿øº» µ¥ÀÌÅ͸¦ °®´Â °³Ã¼ÀÇ ¿¬°üµÈ µ¥ÀÌÅÍ°¡ ¾÷µ¥ÀÌÆ®µÇ±â ¹Ù·Î Àü¿¡ µ¥ÀÌÅ͸¦ ¹Þ´Â °³Ã¼¿¡ ¹ß»ýµÈ´Ù. |
onblur |
IE4 NS3
°³Ã¼°¡ ÃÊÁ¡À» »ý½ÇÇßÀ» ¶§ ¹ß»ýÇÑ´Ù.
¹®¹ý: .onblur='JsCode' |
onchange |
°³Ã¼ÀÇ ³»¿ëÀ» ¼±ÅÃÇϰųª ¼±ÅÃµÈ ³»¿ëÀÌ º¯°æµÇ¾úÀ» ¶§ ¹ß»ýÇÑ´Ù.
¹®¹ý: textObj.onchange='JsCode'
|
onclick |
°³Ã¼¿¡¼ ¸¶¿ì½º¸¦ Ŭ¸¯(´·µ´Ù ³õÀ½)ÇÏ¸é ¹ß»ýµÇ°í ÁöÁ¤µÈ JsCode¸¦ ¼öÇàÇÑ´Ù.
¹®¹ý: .onclick='JsCode' |
oncontextmenu | Ŭ¶óÀ̾ðÆ® Áö¿ª¿¡¼ ¿À¸¥ÂÊ ¸¶¿ì½º ´ÜÃ߸¦ Ŭ¸¯ÇÏ¿´À» ¶§³ª ÄÜÅؽºÆ®(context) ¸Þ´º¸¦ ¿¾úÀ» ¶§ ¹ß»ý |
oncontrolselect | »ç¿ëÀÚ°¡ °³Ã¼ÀÇ Á¦¾î ¼±ÅÃÀ» ÇÏ·Á°í ÇÒ ¶§ ¹ß»ýÇÑ´Ù. |
oncut | ¹®¼ÀÇ ¼±ÅÃÇÑ ³»¿ëÀ» À߶ó ½Ã½ºÅÛ Å¬¸³º¸µå(À߶󳽰ųª º¹»çÇÑ ³»¿ëÀÌ ÀÖ´Â)¿¡ ³ÖÀ» ¶§ ¿øº» °³Ã¼¿¡ ¹ß»ý |
ondblclick |
°³Ã¼¿¡¼ ¸¶¿ì½º¸¦ ¿¬¼Ó µÎ¹ø Ŭ¸¯ÇÏ¸é ¹ß»ýµÇ°í ÁöÁ¤µÈ JsCode¸¦ ¼öÇàÇÑ´Ù.
¹®¹ý: .ondblclick='JsCode' |
ondeactivate | ¸ðü ¹®¼¿¡¼ activeElement ¼Ó¼ºÀÇ ¿¤·¹¸àÆ® °³Ã¼°¡ ÇöÀç °³Ã¼·Î ´Ù¸¥ °³Ã¼·Î º¯°æµÇ¸é ¹ß»ýÇÑ´Ù. |
ondragenter | ¿¬¼Ó ²ø±â µ¿ÀÛ¿¡¼ ¼º°øÀûÀÎ ²ø¾î ³õ±â°¡ ¿Ï·á¸é ¸ñÇ¥ °³Ã¼¿¡ ¹ß»ýÇÑ´Ù. |
ondragleave | ¿¬¼Ó ²ø±â µ¿ÀÛ¿¡¼ ¼º°øÀûÀÎ ²ø¾î ³õ±â°¡ ¿Ï·áµÇ¾î ¸ñÇ¥ °³Ã¼¸¦ ÀÌÅ»ÇÏ¸é ¸ñÇ¥ °³Ã¼¿¡ ¹ß»ýÇÑ´Ù. |
ondragover | ¿¬¼Ó ²ø±â µ¿ÀÛ¿¡¼ À¯È¿ÇÑ ¸ñÇ¥ °³Ã¼ À§¿¡ ÀÖ´Â µ¿¾È ¿¬¼ÓÀûÀ¸·Î ¸ñÇ¥ °³Ã¼¿¡ ¹ß»ýÇÑ´Ù. |
ondrop | ¿¬¼Ó ²ø±â µ¿ÀÛ¿¡¼ ¸¶¿ì½º ´ÜÃ߸¦ ÇØÁ¦ÇÏ¸é ¸ñÇ¥ °³Ã¼¿¡ ¹ß»ýÇÑ´Ù. |
onerrorupdate | µ¥ÀÌÅÍ ¿øõ °³Ã¼¿¡¼ °ü·ÃµÈ µ¥ÀÌÅÍ°¡ ¾÷µ¥ÀÌÆ®µÇ´Â µ¿¾È¿¡ ¿À·ù°¡ ¹ß»ýµÇ¸é ¹ß»ýµÈ´Ù. |
onfocus |
IE NS
°³Ã¼°¡ ÃÊÁ¡À» ¹ÞÀ¸¸é ¹ß»ýµÇ°í JsCode¸¦ ¼öÇàÇÑ´Ù.
¹®¹ý: .onfocus='JsCode' |
onfocusin | IE6 ¿¤·¹¸ÇÆ®¿¡ ÃÊÁ¡À» Á¶±â ¹Ù·Î Àü¿¡ ¿¤·¹¸àÆ®¿¡ ¹ß»ýÇÑ´Ù. |
onfocusout | IE6 ´Ù¸¥ ¿¤·¹¸ÇÆ®·Î ÃÊÁ¡À» À̵¿ÇÏ¸é ¹Ù·Î ÇöÀç ¿¤·¹¸àÆ®¿¡ ¹ß»ýÇÑ´Ù. |
onhelp | È°¼º À©µµ¿ì¿¡¼ µµ¿ò¸»À» À§ÇÏ¿© F1 Å°¸¦ ´©¸£¸é ¹ß»ýµÈ´Ù. |
onkeydown |
°³Ã¼¿¡¼ ÀÚÆÇ(key)À» ´©¸£¸é ¹ß»ýµÇ°í ÁöÁ¤µÈ JsCode¸¦ ¼öÇàÇÑ´Ù.
¹®¹ý: .onkeydown='JsCode' |
onkeypress |
°³Ã¼¿¡¼ ÀÚÆÇ(key)À» ´©¸£°í ÀÖÀ¸¸é ¹ß»ýµÇ°í ÁöÁ¤µÈ JsCode¸¦ ¼öÇàÇÑ´Ù.
¹®¹ý: .onkeypress='JsCode' |
onkeyup |
°³Ã¼¿¡¼ ÀÚÆÇ(key) ´©¸§À» ÇØÁ¦ÇÏ¸é ¹ß»ýµÇ°í ÁöÁ¤µÈ JsCode¸¦ ¼öÇàÇÑ´Ù.
¹®¹ý: .onkeyup='JsCode' |
onlosecapture | °³Ã¼°¡ ¸¶¿ì½º ĸÃÄ(capture)¸¦ ÇØÁ¦ÇÏ¸é ¹ß»ýÇÑ´Ù. |
onmousedown |
°³Ã¼¿¡¼ ¸¶¿ì½º ´ÜÃ߸¦ ´·¶À» ¶§ ¹ß»ýµÇ°í ÁöÁ¤µÈ JsCode¸¦ ¼öÇàÇÑ´Ù.
¹®¹ý: .onmousedown='JsCode' |
onmouseenter | ¸¶¿ì½º Æ÷ÀÎÅÍ°¡ °³Ã¼ À§·Î À̵¿ÇÏ¸é ¹ß»ýÇÑ´Ù. |
onmouseleave | ¸¶¿ì½º Æ÷ÀÎÅÍ°¡ °³Ã¼ ¹ÛÀ¸·Î À̵¿ÇÏ¸é ¹ß»ýÇÑ´Ù. |
onmousemove | ¸¶¿ì½º Æ÷ÀÎÅÍ°¡ °³Ã¼ À§¿¡¼ À̵¿ÇÏ¸é ¹ß»ýÇÑ´Ù. |
onmouseout | ¸¶¿ì½º Æ÷ÀÎÅÍ°¡ °³Ã¼ ¹ÛÀ¸·Î À̵¿ÇÏ¸é ¹ß»ýÇÑ´Ù. |
onmouseover | ¸¶¿ì½º Æ÷ÀÎÅÍ°¡ °³Ã¼ À§·Î À̵¿ÇÏ¸é ¹ß»ýÇÑ´Ù. |
onmouseup |
°³Ã¼¿¡¼ ´ÜÃß ´©¸§À» ÇØÁ¦ÇÏ¸é ¹ß»ýµÇ°í ÁöÁ¤µÈ JsCode¸¦ ¼öÇàÇÑ´Ù.
¹®¹ý: .onmouseup='JsCode' |
onmousewheel | IE6 ¸¶¿ì½º ÈÙ(wheel)À» ±¼¸®¸é ¹ß»ýÇÑ´Ù. |
onmove | °³Ã¼°¡ À̵¿ÇÏ¸é ¹ß»ýÇÑ´Ù. |
onmoveend | °³Ã¼ÀÇ À̵¿ÀÌ ÁßÁöµÇ¸é ¹ß»ýÇÑ´Ù. |
onmovestart | °³Ã¼°¡ À̵¿Çϱ⠽ÃÀÛÇÏ¸é ¹ß»ýÇÑ´Ù. |
onpaste | ½Ã½ºÅÛ Å¬¸³º¸µå(À߶󳽰ųª º¹»çÇÑ ³»¿ëÀÌ ÀÖ´Â)·ÎºÎÅÍ ¹®¼ÀÇ ¸ñÇ¥°³Ã¼¿¡ ºÙ¿© ³ÖÀ¸¸é ¹ß»ýÇÑ´Ù. |
onpropertychange | °³Ã¼ÀÇ ¼Ó¼ºÀ» º¯°æ¹ß»ýÇÑ´Ù. |
onreadystatechange | °³Ã¼ÀÇ Áغñ»óÅÂ(readyState) ¼Ó¼ºÀ» º¯°æ½ÃÅ°¸é ¹ß»ýÇÑ´Ù. |
onresize | À©µµ¿ì³ª ÇÁ·¹ÀÓÀÌµî °³Ã¼ÀÇ Å©±â°¡ Á¶Á¤µÇ¾ú ¶§ ¹ß»ýÇÑ´Ù |
onresizeend | Á¦¾î ¼½¼Ç¿¡¼ °³Ã¼ÀÇ Å©±â º¯°æÀÌ ¿Ï·áµÇ¸é ¹ß»ýÇÑ´Ù. |
onresizestart | Á¦¾î ¼½¼Ç¿¡¼ °³Ã¼ÀÇ Å©±â º¯°æÀÌ ½ÃÀÛµÇ¸é ¹ß»ýÇÑ´Ù. |
onselectstart | °³Ã¼°¡ ¼±ÅõDZ⠽ÃÀÛÇÏ¸é ¹ß»ýÇÑ´Ù. |
Behavior | ¼³¸í |
---|---|
clientCaps | Explorer¿¡ ´ëÇÑ Á¤º¸¸¦ Á¦°øÇÏ°í ¿äû¿¡ ÀÇÇÏ¿© ºê¶ó¿ìÀúÀÇ ÄÞÆ÷³ÙÆ®¸¦ ¼³Ä¡ÇÏ´Â ¹æ¹ý´Ã Á¦°øÇÑ´Ù. |
dataselect | ¿¤·¹¸àÆ®¿¡ µ¥ÀÌÅÍ ¿¬°á(databinding) ±â´ÉÀ» ºÎ¿©ÇÑ´Ù. |
download | ÆÄÀÏÀ» ´Ù¿î·ÎµåÇÏ°í ¿Ï·áµÇ¸é ¿Ï·á¸¦ ¾Ë·ÁÁÖ´Â ±â´ÉÀ» °®°íÀÖ´Ù. |
homePage | »ç¿ëÀÚÀÇ È¨ÆäÀÌÁö¿¡ ´ëÇÑ Á¤º¸¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Ù. |
httpFolder | ºê¶ó¿ìÀú°¡ Ç×ÇØÇÒ ¶§ Æú´õ¸¦ º¼¼ö ÀÖ´Â ½ºÅ©¸³Æ® ±â´ÉÀÌ Æ÷ÇԵǾî ÀÖ´Ù. |
saveFavorite | °³Ã¼°¡ Áñ°Üã±â(favorite)¿¡ µ¥ÀÌÅ͸¦ À¯ÁöÇÏ°Ô ÇÑ´Ù. |
saveHistory | °³Ã¼°¡ ¹æ¹®ÇÑ ±â·Ï(history)¿¡ µ¥ÀÌÅ͸¦ À¯ÁöÇÏ°Ô ÇÑ´Ù. |
saveSnapshot | °³Ã¼°¡ À¥ÆäÀÌÁö°¡ ÀúÀåµÉ ¶§ µ¥ÀÌÅ͸¦ À¯ÁöÇÏ°Ô ÇÑ´Ù. |
time | (ºÒ·®) HTML ¿¤·¹¸àÆ®¿¡ È°¼º ½Ã°£À» Á¦°øÇÑ´Ù. |
userData | °³Ã¼°¡ µ¥ÀÌÅ͸¦ »ç¿ëÀÚ µ¥ÀÌÅÍ(user data)¿¡ À¯ÁöÇÏ°Ô ÇÑ´Ù. |
°³Ã¼ ¿¹Á¦
Ãß°¡ÇÏ°í À§ ¿¹Á¦ÀÇ º¯ÈÀ» º¸¶ó.
<DIV id=showA>°á°ú Ç¥½Ãâ</DIV> <BUTTON onclick="showOptions()">¼±Åà º¸±â</BUTTON> <BUTTON id="addBut" onclick="AddOne()">¼±Åà Ãß°¡</BUTTON> <SCRIPT> selColl=formName.selectName; function AddOne(){ if (selColl.length==6) addBut.disabled=true; numb=selColl.length+1; newOpt=document.createElement("OPTION"); newOpt.text='»õ·Î¿î ¼±ÅÃ'+numb; newOpt.name='newName'+numb; newOpt.value='newVal'+numb; selColl.add(newOpt); showOptions(); } function showOptions(){ str=''; for (i=0;i< selColl.length;i++){ str+=i+'] '+selColl[i].nodeName+' '+selColl[i].name+' '+selColl[i].text+' '+selColl[i].selected+'<BR>'; } showA.innerHTML=str; } </SCRIPT>
<SELECT name="fruit" id="fruitObj" size="3" multiple> <OPTION name="apple" value="A" selected>»ç°ú <OPTION name="peach" value="P">º¹¼þ¾Æ <OPTION name="mandarin" value="M" selected>°¨±Ö <OPTION name="grape" value="G">Æ÷µµ <OPTION name="grapefruit" value="J">ÀÚ¸ù </SELECT> <DIV id=showB>°á°ú Ç¥½Ãâ</DIV> <SCRIPT> selColl=fruit; str=''; for (i=0;i< selColl.length;i++){ str+=i+'] '+selColl[i].nodeName+' '+selColl[i].name+' '+selColl[i].text+' '+selColl[i].value+' '+selColl[i].selected+'<BR>'; } showB.innerHTML=str; </SCRIPT>