Hoi
Is there a way to use a select case in a javascript?
I already tried it with switch
intHulp = 1;
switch (intHulp)
{
case 1: setTimeout("doc ument.getElemen tById('myIframe ').src
='test.htm'",0) ;
case 2: setTimeout("doc ument.getElemen tById('myIframe ').src
='test2.htm'",0 );
}
But the result is always that test2.html is placed in my iframe
greeting
Koen
Is there a way to use a select case in a javascript?
I already tried it with switch
intHulp = 1;
switch (intHulp)
{
case 1: setTimeout("doc ument.getElemen tById('myIframe ').src
='test.htm'",0) ;
case 2: setTimeout("doc ument.getElemen tById('myIframe ').src
='test2.htm'",0 );
}
But the result is always that test2.html is placed in my iframe
greeting
Koen
Comment