frame °³Ã¼ÀÇ À̸§À» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
: (¼Ó¼º ¹®ÀÚ¿­)
¼Ó¼º°ªÀº °³Ã¼ÀÇ À̸§À» ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.
ÀÌ À̸§Àº ÀÓÀÇÀûÀ¸·Î À̸§ÁöÀ» ¼ö ÀÖ°í frame °³Ã¼¸¦ ÀνÄÇÏ´Â ÀνÄÀÚ°¡ µÇ°í ÂüÁ¶Çϴµ¥ »ç¿ëµÈ´Ù.

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

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

ÀÌ ¼Ó¼ºÀº HTML 4.0°ú (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼­ Á¤ÀǵǾú´Ù.


frame °³Ã¼ÀÇ ¼Ó¼º ¿¹Á¦

<SCRIPT>
document.write('top.frames[0].name='+top.frames[0].name+'<BR>');
document.write('top.frames[1].frames[0].name='+top.frames[1].frames[0].name+'<BR>');
document.write('parent.frames[1].name='+parent.frames[1].name)
</SCRIPT>

name ¼Ó¼º ¿¹Á¦

<DIV class=show>
<FORM name=testForm><IMG src=../../gif/rfexample.gif name=testImage>
<INPUT type=text value="testText" name="testText">
<INPUT type=button value="testInput" name="testInput">
</FORM>
</DIV>

<SCRIPT>
var br='<BR>';
document.write('top.frames[0].name='+top.frames[0].name+br);
document.write('top.frames[1].name='+top.frames[1].name+br);
document.write('top.frames[1].frames[0].name='+top.frames[1].frames[0].name+br);
document.write('top.frames[1].frames[1].name='+top.frames[1].frames[1].name+br);
document.write('this.name='+this.name+br+br);

top.window.name='Javascript';
document.write('top.window.name='+top.window.name+br);
document.write('document.images[document.images.length-1].name=',
  document.forms[document.images.length-1].name+br+br);

document.write('document.forms[document.forms.length-1].name=',
  document.forms[document.forms.length-1].name+br);
document.write('document.forms[document.forms.length-1].elements[0].name=',
  document.forms[document.forms.length-1].elements[0].name+br);
document.write('document.forms[document.forms.length-1].elements[1].name=',
  document.forms[document.forms.length-1].elements[1].name+br);
</SCRIPT>
<SCRIPT>