Sönke Tesch: if-bedingter Seitenaufruf funzt net

Beitrag lesen

<script type="text/javascript">
<!--
function Abfrage() {
  if(parent.frames[1].location.href ="Frage1.htm") {
   parent.frames[1].location.href ="5050Frage1.htm";

Aber ich hab das auch schon mit == versucht, klappt auch net.

Du hast sicher auch geprüft, daß location.href der gewünschten Adresse entspricht? Tipp: Gib mal

javascript:alert(location.href);

in die Adressleiste des Browsers ein, wahrscheinlich entspricht das Format nicht dem, was Du erwartet hast.

Gruß,
  soenk.e