Iframe und getElementById? Probs mit NN6. Merci!
    
Fraenk
    
    
      
    
  - javascript
 
Hallo zusammen!
Ich habe eine einfache Seite mit einem Iframe in einem Div:
...
<div id="anzeigediv" name="testname" style="float:left; position:absolute; left: 9px; width:993px; height:50px; z-index:1; top: 19px; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000">
        <iframe id="mycontent" name="testcontent" src="iframec.html" border="0" frameborder="0" marginwidth="0" marginheight="0" width="100%" height="100%" scrolling="No">
        </iframe>
</div>
<p> </p>
<p> </p>
<p>
<a href="#" OnClick="alert(top.mycontent.document.getElementById('item2').name);">
Info 1
 </a>
</p>
<p>
<a href="#" OnClick="alert(top.anzeigediv.document.mycontent.document.getElementById('item2').id);">
Info 2
 </a>
</p>
</body>
...
und eine Seite, die im IFrame angezeigt wird(iframec.html):
...
<div id="item1" name="myitem1" style="float:top; position:static; width:auto; height :auto;  z-index:1; overflow: hidden; left: auto; top: auto; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000">
 Test  1
 </div>
<div id="item2" name="myitem1" style="float:top; position:static; width:auto; height :auto;  z-index:2; overflow: hidden; left: auto; top: auto; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000">
 Test  2
 </div>
...
Die Links Info1 und Info2 funktionieren im IE, aber nicht im NN6!
Hat jemand eine Vorstellung, wo mein Denkfehler liegt?
Vielen Dank und schöne Grüße an Alle,
Fraenk
P.S.: Hoffe es war nicht zuviel Code.