Hallo,
function location() {
location='seite2.htm';
Du packst den String 'seite2.htm' in eine Variable namens "location". Und das funktioniert nicht?
Dann mache bitte dies:
var location = 'seite2.htm';
Gilt aber nur innerhalb der Funktion. Aber wozu ist das gut?
Kalle