À̺¥Æ®°¡ ¹ß»ýÇÑ °³Ã¼¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
: (¼Ó¼º °³Ã¼)
¼Ó¼º°ªÀº À̺¥Æ®°¡ ¹ß»ýÇÑ °³Ã¼ÀÌ´Ù.

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

Ư±â

IE4.0¿¡¼­ ÀбâÀü¿ëÀ̾úÀ¸³ª IE5ºÎÅÍ´Â Àϱâ/¾²±âÀÌ´Ù.

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

°á°ú Ç¥½Ãâ

¹®¼­ ¾î´À°÷À̳ª Ŭ¸¯ÇØ º¸¶ó.
srcElement ¼Ó¼ºÀ¸·Î ¸ðü °³Ã¼¸¦ ¾ò°í, ÇÊ¿äÇϸé, textRangeÀ» ¸¸µé¾î ¿øº» °³Ã¼À» À̵¿½ÃÅ°°í, °³Ã¼ÀÇ Ã¹±ÛÀÚ¸¦ ¼±ÅÃÇÑ´Ù.

<SCRIPT>
document.onmousedown=selectWord;
function selectWord(){
  str='window.event.srcElement.nodeName='+window.event.srcElement.nodeName+'<BR>';
  var srcObj=window.event.srcElement;
  if (!srcObj.isTextEdit) srcObj=window.event.srcElement.parentTextEdit;
      str+='srcObj.nodeName='+srcObj.nodeName+'<BR>';
    if (srcObj != null) {
      var txRgObj=srcObj.createTextRange();
      txRgObj.moveToElementText(window.event.srcElement);
      txRgObj.collapse();
      txRgObj.expand("word");
      txRgObj.select();
      str+='txRgObj.text='+txRgObj.text+'<BR>';
    }
  showA.innerHTML=str;
}
</SCRIPT>
<DIV id=showA>°á°ú Ç¥½Ãâ</DIV>