Chräcker Heller: Meldung bei falschem Browser

Beitrag lesen

Hallo,

soetwas macht man, indem man per JavaScript bestimmte Funktionen abfragt, von denen man weiß, das sie bestimmte Browser können, abfragt. Also z.Bsp.

if (document.layers)
     window.location = "sorryns4.html";

fischt Dir NS4er aus den Teich.

if (document.all)
     window.location = "sorryie.html";

holt die IE raus und

if (document.getElementById && !document.all)
     window.location = "sorrymoz.html";

bringt Dir die NS6, 7 und mozillas.

Opera wiederum bekommt man gut mit

if(window.opera)
    window.location = "sorryopera.html";

Chräcker