> 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("document.getElementById('myIframe').sr c
='test.htm'",0);
case 2: setTimeout("document.getElementById('myIframe').sr c
='test2.htm'",0);
}
But the result is always that test2.html is placed in my iframe
VB's "Select Case" doesn't need the "break;" statement - but javascript's
switch statement does need the break statement in each "case" block -
otherwise they all get executed from the "true" part on down through the
rest of the curly-braced section.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.799 / Virus Database: 543 - Release Date: 11/19/2004