javascript problem

  • Thread starter Thread starter Jean Pierre Daviau
  • Start date Start date
J

Jean Pierre Daviau

Hi,

Should not this script work with IE?
Could my Javascript module in ie be corrupted?


<SCRIPT type="javascript" language="JavaScript">
var in =1;

switch( in ){
case 1:
alert(1);
break;

case 2:
alert(2);
break;

default:
document.write(' dddddddd ');
}
</SCRIPT>
Thanks for your attention

--
Jean Pierre Daviau
--
Easyphp1.8
Apache1.3.24
DEVC++, borland 5.5
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
http://www.jeanpierredaviau.com
 
javascript:var entrant = 1;switch( entrant ){case 1:entrant =
"-1-";break;case 2:entrant = 2;break;default:}alert(entrant);

The previous works in the address bar.
The opening of a page is slow.
 
Hi,
You may get a better response in one of these microsoft public newsgroups:

microsoft.public.scripting.jscript
microsoft.public.inetexplorer.scripting

Hope this helps,
Don
[MS MVP- IE]
 
Back
Top