Struppi: javascript funktion startet in opera nicht

Beitrag lesen

function frames(UR,URA) {
  Frame1=eval("parent.border");
  Frame2=eval("parent.main");
  Frame1.location.href = UR;
  Frame2.location.href = URA;
}

auch wenn das aus selfhtml stamen sollte - es ist grauhenhaft!!!

eval ist hier absolut nicht nötig und da es nicht funktioniert ist eine Fehlerkontrolle angebracht:

function frames(UR,URA) {
var F1 = parent.border;
var F2 = parent.main;
if(!F1 || !F2) return alert('Fehler!');#

F1.location.href = UR;
F2.location.href = URA;
}

<html><head><meta http-equiv='refresh' content='0; URL=javascript:frames("reccources.php?base=$base", "build.php?base=$base");'></head></html>

Naja, ich vermute mal das javascript hier nicht hin soll, aber auch nicht nötig ist. schau die mal die Funktion window.setTimeout an.

Struppi.