Thomas Meinike: Inhalt ändern

Beitrag lesen

Hallo,

Hab es mit:
document.getElementById("box1").style.value = "hallo";
            probiert geht aber nicht.

document.getElementById("box1").firstChild.nodeValue = "hallo";

oder

document.getElementById("box1").childNodes[0].nodeValue = "hallo";

oder in den Browsern, die auch die anderen Varianten kennen:

document.getElementById("box1").innerHTML = "hallo";

MfG, Thomas