createControlRange³ª createRange ¸Þ¼­µå·Î »ý¼ºµÈ ¿¤·¹¸àÆ®µéÀÇ Ä÷º¼ÇÀ» ÂüÁ¶ÇÑ´Ù.

Ư±â

Ä÷º¼ÇÀÇ item ¸Þ¼­µå¸¦ »ç¿ëÇÏ´Â ´ë½Å Ä÷º¼Ç¿¡¼­ Á÷Á¢ÀûÀ¸·Î Àμö(index)¸¦ »ç¿ëÇÏ¿© È£ÃâÇÒ ¼ö ÀÖ´Ù. collectionObj(0)°ú collectionObj.item(0)´Â °°Àº °³Ã¼¸¦ ¹ÝȯÇÑ´Ù.

ÀÌ Ä÷º¼ÇÀº IE5¿¡¼­ »ç¿ë °¡´ÉÇÏ´Ù.

ÂüÁ¶
createControlRange createRange

length ¼Ó¼º IE
¢¡ Ä÷º¼ÇÀÇ ±æÀ̸¦ ¹ÝȯÇϰųª ÁöÁ¤ÇÑ´Ù.
¹®¹ý: [iVal=].length
ÄÚµå: document.write(oObj.length);

¸Þ¼­µå¼³¸í
add Ä÷º¼Ç¿¡ ÇÑ°³ÀÇ controlRange °³Ã¼³ª options Ä÷º¼ÇÀ» Ãß°¡ÇÑ´Ù.
¹®¹ý: [oVal=].add('iVal')
addElement Ä÷º¼Ç¿¡ ÇÑ°³ÀÇ ¿¤·¹¸àÆ®¸¦ Ãß°¡ÇÑ´Ù.
¹®¹ý: [bVal=].addElement('sVal')
execCommand ÇöÀç ¹®¼­¿¡¼­ commandStringÀ¸·Î ÁöÁ¤ÇÑ ÀÛ¾÷À» ¼öÇàÇÑ´Ù. Âü°í: command ¸ñ·Ï
¹®¹ý: [bVal=].execCommand('sVal')
item À妽º·Î Ä÷º¼ÇÀÇ ÇÑ°³ÀÇ °³Ã¼¸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: [oVal=].item('iVal')
queryCommandEnabled ÇöÀçÀÇ ¹®¼­¿¡¼­ ÁöÁ¤µÈ execCommand ¸í·ÉÀÌ ¼º°øÀûÀ¸·Î ¼öÇàµÇ¾ú´Â°¡ ºÎ¿ï°ªÀ» ¹ÝȯÇÑ´Ù.
¹®¹ý: [bVal=].queryCommandEnabled('sVal')
queryCommandIndeterm ÁöÁ¤µÈ ¸í·ÉÀÌ ¹Ì¼öÇà(indeterminate)»óÅ¿¡ Àִ°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: [bVal=].queryCommandIndeterm('sVal')
queryCommandState ¸í·ÉÀÇ ÇöÀç »óŸ¦ ºÎ¿ï°ªÀ¸·Î ¸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: [bVal=].queryCommandState('sVal')
queryCommandSupported ÇöÀçÀÇ ¸í·ÉÀÌ ÇöÀçÀÇ ¹üÀ§¿¡¼­ Áö¿øµÇ´Â°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇÑ´Ù.
¹®¹ý: [bVal=].queryCommandSupported('sVal')
queryCommandValue ÁÖ¾îÁø ¸í·É¿¡¼­ ÇöÀçÀÇ ¹®¼­, ¹üÀ§³ª ¼±ÅÃÀÇ ÇöÀç°ªÀ» ¹ÝȯÇÑ´Ù.
¹®¹ý: [bVal=].queryCommandValue('sVal')
remove ÁöÁ¤ÇÑ ¿¤·¹¸àÆ®¸¦ Ä÷º¼Ç¿¡¼­ Á¦°ÅÇÑ´Ù.
¹®¹ý: [bVal=].remove('sVal')
scrollIntoView °³Ã¼¸¦ º¸±â°Ô ±¼¸²(scroll)ÇÏ°í À©µµ¿ìÀÇ ¸ÇÀ§³ª ¾Æ·¡¿¡ Á¤·ÄÇÑ´Ù.
¹®¹ý: [bVal=].scrollIntoView('sVal')
select ÁöÁ¤ÇÑ °³Ã¼¿¡ ÃÊÁ¡À» ÁÖ°í onfocusÀ̺¥Æ®¿¡ ÁöÁ¤ÇÑ Ã³¸®ÀÚ Äڵ带 ¼öÇàÇÑ´Ù.
¹®¹ý: [bVal=].select('sVal')