°³Ã¼¸¦ »ç¿ëÀÚ°¡ »ç¿ëÇÒ ¼ö Àִ°¡¸¦ ³ªÅ¸³»´Â ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

object.disabled[=true|false]
Àμö
: (¼Ó¼º ºÎ¿ï°ª)
¼Ó¼º°ªÀº »ç¿ëÀÚ°¡ °³Ã¼¿¡¼­ ÀÛ¾÷ÇÒ ¼ö Àִ°¡¸¦ ³ªÅ¸³»´Â ºÎ¿ï°ªÀÌ´Ù.

false »ç¿ëÀÚ°¡ °³Ã¼¿¡¼­ ÀÛ¾÷ÇÒ ¼ö ÀÖ´Ù
true »ç¿ëÀÚ°¡ °³Ã¼¿¡¼­ ÀÛ¾÷ÇÒ ¼ö ¾ø´Ù

ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ® °ªÀº falseÀÌ´Ù.

Ư±â

¿¤·¹¸àÆ®°¡ disabled µÇ¸é °³Ã¼°¡ È帮°Ô ³ªÅ¸³ª°í »ç¿ëÀÚ ÀÔ·ÂÀÌ ºÒ°¡´ÉÇÏ°Ô µÈ´Ù.
disabledµÈ °³Ã¼´Â ¸¶¿ì½º À̺¥Æ®¿¡ ¹ÝÀÀÇÏÁö ¾Ê°í contentEditable ¼Ó¼º¿¡µµ ¹ÝÀÀÇÏÁö ¾Ê´Â´Ù.

¸¸ÀÏ disabledµÈ ¸ðü ¿ë±â ¿¤·¹¸àÆ® ¼Ó¿¡¼­ disabled=false·Î °³Ã¼°¡ ¼³Á¤µÇ´õ¶óµµ ¸ðüÀÇ disabled ¼Ó¼ºÀ» µ¤¾î ¾º¿ï ¼ö´Â ¾ø´Ù.

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE


BODY, DIV °³Ã¼ÀÇ ¼Ó¼º ¿¹Á¦

<BODY id=bodyObj>
<DIV id=divObj></DIV>

<SCRIPT>
document.write('bodyObj.disabled='+bodyObj.disabled+'<BR>divObj.disabled='+divObj.disabled)
</SCRIPT>

STYLE, DIV °³Ã¼ÀÇ ¼Ó¼º ¿¹Á¦

¸ðü ¹®´Ü ¹®ÀÚ¿­.

style °³Ã¼¸¦ È°¼ºÈ­ ½ÃÅ°°Å³ª ºÒÈ°¼ºÈ­ ½ÃÄ­´Ù.

<STYLE ID="styleObj">
.class1{background-color:blue;color:white}
.class2{background-color:brown;color:yellow;}
</STYLE>
<SCRIPT>
function changeIt(){
  str='';
  br='<BR>';
  if (divObj.enablement=='enabled'){
    divObj.enablement='disabled';
    butObj2.value='Ŭ¸¯ÇÏ¿© disabled=false·Î º¯°æÇ϶ó.';
    styleObj.disabled=true;
    butObj1.disabled=true;
  } else{
    butObj2.value='Ŭ¸¯ÇÏ¿© disabled=true·Î º¯°æÇ϶ó.';
    divObj.enablement='enabled';
    styleObj.disabled=false;
    butObj1.disabled=false;
  }
  str+='styleObj.disabled='+styleObj.disabled+br;
  str+='butObj1.disabled='+butObj1.disabled+br;
  str+='butObj2.disabled='+butObj2.disabled+br;
  showVals.innerHTML=str;
}
</SCRIPT>
<DIV enablement="enabled" ID="divObj" class="class1">¸ðü ¹®´Ü ¹®ÀÚ¿­.
<INPUT type="button" ID="butObj1" class="class2" value="´ÜÃß ¹®ÀÚ¿­" onclick="alert('È°¼ºÈ­ µÈ »óÅ¿¡¼­¸¸ °¡´ÉÇÏ´Ù.')"></DIV>
<INPUT type="button" ID="butObj2" value="Ŭ¸¯ÇÏ¿© °á°ú¸¦ º¸¶ó." onclick="changeIt()">
<DIV id=showVals></DIV>