Ronny: schleife mit integriertem if-else

Beitrag lesen

Hi,

die { } sitzen falsch.

So müßte es klappen:

function richtig()  {
 while (next < 4)  {
   if(parent.aufgabe[next] == 0){
     parent.frames[1].location.href=next+".html";
     next=4;
   }
   else
     next=next+1;
 }
parent.frames[1].location.href="loesung.html";
}

CU

Ronny