ÀÎÁ¢ ÅؽºÆ® ¹®ÀÚ¿­À» ¹ÝȯÇÑ´Ù.

Àμö/ÆĶó¸ÞÅÍ
sLocation
ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, ¾îµð¿¡ ¹®ÀÚ¿­ÀÌ À§Ä¡ÇÏ¿´´Â°¡¸¦ ÁöÁ¤ÇÏ´Â ´ÙÀ½ Áß ÇϳªÀÇ ¹®ÀÚ¿­ÀÌ´Ù.
beforeBegin ¿¤·¹¸àÆ® ¹Ù·Î ÀüÀÇ ÅؽºÆ®¸¦ ¹ÝȯÇÑ´Ù.
afterBegin ¿¤·¹¸àÆ®°¡ ½ÃÀÛµÇ°í ¿¤·¹¸àÆ® ¼ÓÀÇ ¸ðµç ³»¿ë ÀÌÀüÀÇ ¹®ÀÚÀ»À» ¹ÝȯÇÑ´Ù.
beforeEnd ¿¤·¹¸àÆ® ¼ÓÀÇ ¸ðµç ³»¿ë ´ÙÀ½ ¿¤·¹¸àÆ®ÀÇ Á¾·á ¹Ù·Î ÀüÀÇ ¹®ÀÚ¿­À» ¹ÝȯÇÑ´Ù.
afterEnd ¿¤·¹¸àÆ®ÀÇ Á¾·á ¹Ù·Î ´ÙÀ½ÀÇ ¹®ÀÚ¿­À» ¹ÝȯÇÑ´Ù.
¹Ýȯ°ª

¹Ýȯ°ª sValÀº óÀ½ ÀÎÁ¢ÇÑ ¹®ÀÚ¿­ÀÌ´Ù.

Àû¿ë
°³Ã¼scriptIE

ù° ºÎºÐ (beforeBegin).

µÑ° ºÎºÐ (afterBegin). ¼Â° ºÎºÐ. ³Ý° ºÎºÐ (beforeEnd).

´Ù¼¸Â° ºÎºÐ (afterEnd).

°Ë»öÇÑ ºÎºÐÀº

getAdjacentText ¸Þ¼­µå·Î ÁöÁ¤µÈ ¹®ÀÚ¿­À» °Ë»öÇÑ´Ù.

<SCRIPT>
function fnFind(){
  var sLocation=oSel.options[oSel.selectedIndex].text;
  showA.innerHTML=pObj.getAdjacentText(sLocation);
}
</SCRIPT>
<DIV style="border:solid 1 teal;background:ffd">
ù° ºÎºÐ (beforeBegin).<BR>
<P id=pObj style="border:solid 1 green">µÑ° ºÎºÐ (afterBegin). <I>¼Â° ºÎºÐ.</I> ³Ý° ºÎºÐ (beforeEnd). </P>
´Ù¼¸Â° ºÎºÐ (afterEnd).</DIV>
<SELECT id=oSel>
<OPTION SELECTED>beforeBegin
<OPTION>afterBegin
<OPTION>beforeEnd
<OPTION>afterEnd
</SELECT>
<INPUT type="button" value="°Ë»ö" onclick="fnFind()">
<P> °Ë»öÇÑ ºÎºÐÀº <SPAN id=showA style="border:solid 1 blue;color:red"></SPAN></P>