wahsaga: iframe in iframe löschen

Beitrag lesen

hi,

test1.html:
<iframe id="x2" src="test2.html">

Main:
<iframe id="x1" src="test1.html">
<script>
i=0;
document.body.removeChild(frames[i].frameElement)
// löscht beide iframe x1 incl. Inhalt (iframe x2)

was ist frameElement?

// mit zB.
i=0;
alert(document.frame[i].[frame[i].frameElement.id)
// kann ich auf das 2. iframe (x2) zugreifen

// Nur finde ich keinen Weg mit removeChild das 2. iframe zu löschen.

wo von wäre denn der zweite iframe ein Child?

gruß,
wahsaga

--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }