Hallo,
ich habe eine Browserweiche programmiert. Wie baue ich die abfrage für den Konqueror mit ein?
<script LANGUAGE="JavaScript">
function browser ()
{
if (navigator.appName.indexOf("Netscape") != -1)
{
// Beim Netscape
//document.write("<link rel="stylesheet" type="text/css"
//href="css/hp.css">")
document.write("Netscape");
}
else
{
if (navigator.appName.indexOf("Explorer") != -1)
{
// beim IE
//document.write("<link rel="stylesheet"
//type="text/css" href="css/hpw.css">")
document.write("IE");
}
else
{
// Bei allen anderen Browsern !!!!
}
}
}
</script>
<body onload="browser ()">
</body>
Gruß
Uwe