J.Kleingeist: iframe in iframe löschen

Beitrag lesen

Hallo,

nachfolgend mein Problem,

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)

// 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.

Weiß jemand Rat?

Danke
Guß J.Kleingeist