°³Ã¼¿¡ ÃÊÁ¡À» ÁÖÁö ¾ÊÀº »óÅ¿¡¼­ È°¼ºÈ­ÇÑ´Ù.

Àμö/ÆĶó¸ÞÅÍ
object (°³Ã¼)

ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, °³Ã¼ÀÌ´Ù.

ÆĶó¸ÞÅÍ

ÆĶó¸ÞÅÍ´Â ¾ø´Ù.

¹Ýȯ°ª

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

Ư±â

setActive ¸Þ¼­µå´Â ÇöÀçÀÇ ÆäÀÌÁö³ª ´Ù¸¥ frameÀ̳ª window¿¡ ÀÖ´Â È°¼º°³Ã¼¸¦ À§ÇÏ¿© ½ºÅ©·ÑÇϵµ·Ï ÇÏÁö ¾Ê´Â´Ù.

Àû¿ë
°³Ã¼scriptIE

´ÜÃß 1¿¡¼­ setActive ¸Þ¼­µå·Î ´ÜÃß 2¸¦ È°¼ºÈ­½ÃÄÑ »ö»óÀ» º¯°æ½ÃŲ´Ù.

<SCRIPT>
function fnBottomActive(){
  window.parent.jsmain.secondButton.setActive();
}
</SCRIPT>
<DIV id=divObj>
<BUTTON onclick="fnBottomActive()">´ÜÃß 1</BUTTON>
<BUTTON id="secondButton" onfocus="this.style.color='red'" onblur="this.style.color='black'">´ÜÃß 2</BUTTON>
<BUTTON>´ÜÃß 3</BUTTON></DIV>

À§ ´ÜÃß 2 È°¼ºÈ­ ´ÜÃ߸¦ Ŭ¸¯Çϸé ÇöÀç ÆäÀÌÁö¿¡ ÃÊÁ¡ÀÌ ÀÖÀ¸¹Ç·Î ÃÊÁ¡ÀÌ ´ÜÃß·Î À̵¿µÇ¸ç È°¼ºÈ­µÈ´Ù.
¹Ý¸é »õâÀÇ ¿¬°á È°¼ºÈ­ ´ÜÃ߸¦ Ŭ¸¯Çϸé ÃÊÁ¡À» ÁÖÁö ¾ÊÀº »óä¿¡¼­ È°¼ºÈ­ ½ÃÄ­´Ù. ¼öµ¿À¸·Î ÃÊÁ¡À» ÁÖ¸é ¿¬°á¿¡ ÃÊÁ¡ÀÌ °¡´Â °ÍÀ¸·Î È®ÀÎÇÒ ¼ö ÀÖ´Ù.

<HTML>
<HEAD>
<SCRIPT>
function fnOpen(){
  winObj=window.open('../object/exp/wframeDoc1.html','newWin','top=10px,left=200px,height=100px,width=500px,resizable=1');
  winObj.focus();
}
function fnBottomActive(){
  window.parent.jsmain.secondButton.setActive();
}
</SCRIPT>
</HEAD>
<BODY onload="fnOpen();">
<BUTTON id="btn1" onclick="fnBottomActive();">À§ ´ÜÃß 2 È°¼ºÈ­</BUTTON>
<BUTTON id="btn2" onclick="winObj.document.all.tags('A')[0].setActive();">»õâÀÇ ¿¬°á È°¼ºÈ­</BUTTON>
</BODY>
</HTML>