Blödsinn! Alles was du brauchst ist eine Funktion:
Code:<html> <head> <script type="text/javascript"> function textChange(text) { document.getElementById("test").innerHTML = text; } </script> </head> <body onload="textChange('fuubar')"> <div id='test'></div> </body> </html>