Hello out there!
window.open('http://www.google.ch', 'iframe');
Es ging nicht um das Öffnen eines neuen Popup-Fensters, sondern um die Änderung des Inhalts eines bestehenden Iframes.
<a href="javascript:zweilinks();">Klick mich</a>
Höchst unsinnig. Nutzer (u.a. Clients) ohne JavaScript haben davon gar nichts.
Entweder man lässt über 'href'- und 'target'-Attribute den Inhalt des Iframes ändern und springt per JavaScript zum Anker oder man springt über das 'href'-Attribut zum Anker und ändert den Inhalt des Iframes mit JavaScript. Ersteres dürfte wohl weitaus sinnvoller sein:
<a href="file:///C:/../../Bild1.jpg" target="iframe" onclick="[code lang=javascript][ref:self812;javascript/objekte/location.htm#hash@title=window.location.hash] = 'Bild'; return true;
">[/code]
Oder man überdenkt das Konzept der Seite nochmal.
See ya up the road,
Gunnar
„Wer Gründe anhört, kommt in Gefahr nachzugeben.“ (Goethe)