javascript problem

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
 
J

Jean Pierre Daviau

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.
 
D

Don Varnau

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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Registering pages 5
y en a marre de Live Search 2
setting screen in ansi on the fly 1
mkdir %_folder% 1
virus software 11
registery keys 4
cmd and win98 1
command line VS cmd file 3

Top