ChrisB: Warum funktioniert lastindexOf korrekt in FF aber nicht in IE?

Beitrag lesen

Hi,

musicpfad=document.URL.slice(0,document.URL.lastIndexOf("/")+1);
alert(musicpfad);

FF 3.0.10 liefert brav den Pfad "file:///D:/tmp/FaderFramework/"
IE 7.0.57... liefert "file://"

Bei welchem Ausgangswert (jeweils)?

MfG ChrisB

--
Light travels faster than sound - that's why most people appear bright until you hear them speak.