Ä÷¢¼ÇÀ¸·ÎºÎÅÍ ¼±ÅûçÇ×À» Á¦°ÅÇÑ´Ù.

Àμö/ÆĶó¸ÞÅÍ
object
ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, areas, controlRange, options Ä÷º¼ÇÀ̳ª select °³Ã¼°¡ µÉ ¼ö ÀÖ´Ù.
iIndex
ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, Ä÷º¼Ç¿¡¼­ Á¦°ÅÇÒ ¿¤·¹¸àÆ®ÀÇ 0¿¡¼­ ½ÃÀÛÇÏ´Â Àμö¸¦ ³ªÅ¸³»´Â Á¤¼ö°ªÀÌ´Ù.
¹Ýȯ°ª

¹Ýȯ°ªÀº ¾ø´Ù.

Àû¿ë
°³Ã¼scriptIE
ÂüÁ¶
add

ÀÌ ¸Þ¼­µå´Â (¿µ¾î)DOM Level 1(Document Object Model Level 1)¿¡¼­ Á¤ÀǵǾú´Ù.


<SCRIPT>
function removeit(){
  obj=document.testForm.testSelect;
  lastobj=obj.options[(obj.options.length-1)];
  alert(lastobj.text+'['+lastobj.index+'] »èÁ¦');
  obj.remove(lastobj.index);
  obj.focus();
}
</SCRIPT>

<FORM name=testForm>
<SELECT id=testSelect size=9>
<OPTION>¼±Åà 1
<OPTION>¼±Åà 2
<OPTION>¼±Åà 3
<OPTION>¼±Åà 4
<OPTION>¼±Åà 5
<OPTION>¼±Åà 6
<OPTION>¼±Åà 7
<OPTION>¼±Åà 8
<OPTION>¼±Åà 9
</SELECT>
<INPUT type=button value='¼±Åà Ç׸ñ »èÁ¦'   onClick="removeit()">
</FORM>