SyntaxFix
Write A Post
Hire A Developer
Questions
Why is that not acceptable?
document.getElementById('test').innerHTML += str
would be the textbook way of doing it.