SyntaxFix
Write A Post
Hire A Developer
Questions
You can use document.write or even console.write (this is good for debugging).
document.write
console.write
But your best bet and it gives you more control is to use DOM to update the page.