document.write('test');

o li metti in un div

div.value= 'test';