Select Page

Try this code:

if(navigator.appName.indexOf(“Netscape”)!=-1 && navigator.appVersion.indexOf(“4.”)==0) {
document.writeln(“”);
} else {
document.writeln(“”);
document.writeln(“@import url(/includes/style.css);”);
document.writeln(“”);
}

What this does is check to see if the client is not Netscape 4. In that case it will write the normal tag. If it is Netscape 4, it will write out Netscape 4’s own finicky way of doing it.

Also, be warned that styles will almost certainly look slightly different in all the different browsers. I personally find it easiest to code for Mozilla and then Internet Explorer. Then, if needed, I will try to do something with Netscape 4.