frame °³Ã¼ÀÇ À̸§À» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ ¼Ó¼ºÀº HTML 4.0°ú (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼ Á¤ÀǵǾú´Ù.
<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>
<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>