Hi,
Vielleicht noch besser:
base = window.location.href.replace(/[^/]*$/, '');
?
RegExp bemühen, wo simple Stringfunktionen ausreichen?
Das erfüllt so gut wie nie die Definition von "besser".
MfG ChrisB
--
Light travels faster than sound - that's why most people appear bright until you hear them speak.
Light travels faster than sound - that's why most people appear bright until you hear them speak.