tsongwei
06-10-2003, 05:42 PM
I can't fiture out what's wrong with my code.
I wrote something like this:
if (document.layers){
alert("NN");
}else if(document.getElementById){
alert("IE");
}else{
alert("others");
}
It works with IE, but not for Netscape, does anyone know what's wrong in my code?
thx
I wrote something like this:
if (document.layers){
alert("NN");
}else if(document.getElementById){
alert("IE");
}else{
alert("others");
}
It works with IE, but not for Netscape, does anyone know what's wrong in my code?
thx