uso said:
thx. but it writes the blablabla in new , how to write it in the sam web
page
Yes the problem with document.write is that it only works as you may
expect before the whole page is loaded (and the DOM Tree is still to be
completed). That's why document.write and print (in PHP) works pretty
much the same way and are only used when generating the page.
To add text to the page after the page is loaded is another problem.
There are several ways to accomplish this but one of the easist one is
to use the innerHTML-property that every HTML-element has:
document.getElementById("elementID").innerHTML = "TExt";
or
document.body.innerHTML += "text"; // adds the text directly to the
body-element
You shouldn't try this method before the whole page is loaded though.
The element you try to add the text to might not be comlete yet.