hallo Leute,
hab das Problem, das Netzcape nach dem alert behauptet 'ziel' sei nicht definiert.
IE führt das script ohne Fehlermeldung aus.
was mache ich falsch ??
<html><head><title>Test</title>
</head><body onload=" at_und_subDomains()">
<script>
<!--
function at_und_subDomains() {
ziel = document.URL;
ziel = ziel.replace(/www./,"");
ziel = ziel.replace(/http:///,"");
ziel = ziel.replace(///,"");
ziel = ziel.replace(/@/,".");
alert (ziel);
document.open;
document.writeln('<frameset framespacing="0" rows="100%,*" border="0" frameborder="0">');
document.writeln('<frame scrolling="auto" noresize src=/'+ziel+' target="_self">');
document.writeln('</frameset>');
document.close();
}
//-->
</script>
</body></html>