Harald: Zugriff auf anderes Frame

Beitrag lesen

Hallo Forum,

ich habe eine Seite mit mehreren Frames. Nun möchte ich in einem Frame immer das "Lastmodified-Datum" eines anderen, gerade angezeigten Frames anzeigen lassen. Ich greife daruaf zu mit
Fall1:
lastmod = new Date(parent.frames[4].document.lastModified);

So, funktioniert es mit ie5 und netscape4. Warum mag der Netscape folgende Konstrukte nicht, wobei der ie4 nicht meckert:
Fall2:
lastmod = new Date(parent.home.[4].document.lastModified);
Fall3:
lastmod = new Date(parent.frames["home"].document.lastModified);
Fall4:
lastmod = new Date(parent.frames.home.document.lastModified);

Bei Fall2 bis 4 gibt Netscape "undefined" aus.

Kann mir jemand einen Tip geben.

Zum besseren Verständnis hier das Frameset:
<FRAMESET border=0 cols=300,* frameBorder=0 frameSpacing=0>
    <FRAMESET rows=100,*,100>
        <FRAME marginHeight=0 marginWidth=0 name="logo" noresize scrolling=no src="logo.html">
        <FRAME marginHeight=0 marginWidth=0 name="menu" noresize scrolling=no src="checkmen.html">
        <FRAME marginHeight=0 marginWidth=0 name="bottom_leftmenu" noresize scrolling=no src="info.html">
    </FRAMESET>
    <FRAMESET rows=40,*>
        <FRAME marginHeight=0 marginWidth=0 name="top" noresize scrolling=no src="topframe.html">
        <FRAME marginHeight=3 marginWidth=3 name="home" src="home.html">
    </FRAMESET>
</FRAMESET>

Im Frame mit dem Namen "Info" wird folgendes getan:
<html>
<head>
<title>Info</title>
<STYLE>
     body       { color:#6666ff; background-color:#000000; FONT-FAMILY: Verdana,Helvetica,Arial, sans-serif; FONT-SIZE: 14px; }
     p          { color:#6666ff; alignment:justify; font-family:Verdana,Helvetica,Arial; font-size:8pt; }
</STYLE>
<script>
    var mod_dat;
    lastmod = new Date(parent.frames[4].document.lastModified);
    if (lastmod.getTime() == 0)
        document.write("Aenderungsdatum unbekannt.");
    else
    {
        tt = lastmod.getDate();
        mm = lastmod.getMonth() + 1;
        jhjj = lastmod.getFullYear();   // requires 4th generation browser
        mod_dat = tt + "." + mm + "." + jhjj;
    }
</script></head>
<body>
<table><tr>
    <td><p>Last modified: <script>document.write(mod_dat)</script></p></td>
</tr></table></body></html>