Select Page

Try this code:

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

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.