Ashura: Variablen für Java "eingeben"

Beitrag lesen

Hallo Dennis.

Erst mal ist hier ein Fehler drin, da fehlt das Semikolon am Zeilenende! Und das nicht nur in dieser einen Zeile, sondern in jeder Zeile - eigentlich dürfte das Script gar nicht lauffähig sein - hast du schon mal probiert, ob es läuft?

Entweder überall Semikola oder ein Zeilenumbruch nach jeder Anweisung; beides ist erlaubt.

Außerdem ist der script-Tag eigentlich nur in <head> erlaubt und nicht in <body>.

Nö:

The SCRIPT element places a script within a document. This element may appear any number of times in the HEAD or BODY of an HTML document.

Einen schönen Donnerstag noch.

Gruß, Ashura

--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]