am: cross browser

Beitrag lesen

Hi amo,

ich sehe zwei Fehler:

falsch: var nv = navigator.appVersion.substring(0.1);
richtig: var nv = navigator.appVersion.substring(0,1);
                                                  ^
falsch: (nv="3") ? (window.location.href = 'netgold.htm') : (window.location.href = 'index4.htm')
richtig: (nv=="3") ? (window.location.href = 'netgold.htm') : (window.location.href = 'index4.htm')
            ^^

Eleganter wäre die letztere Zeile so:

window.location.href=(nv=='3')?'netgold.htm':'index4.htm';

Gruß,

Christoph