Length = document.embeds.length Name = document.embeds[n].name |
数を返す 名前を返す |
<EMBED NAME="embeds1" WIDTH="10" HEIGHT="10"></EMBED> <EMBED NAME="embeds2" WIDTH="10" HEIGHT="10"></EMBED><BR><BR> <SCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- var i; document.write( "Length: ", document.embeds.length, "<BR>" ); for( i = 0 ; i < document.embeds.length ; i++ ) { document.write( "Name : ", document.embeds[i].name, "<BR>" ); } //--> </SCRIPT> |