As silly as it may sound, I still haven\'t found an appropriate answer.
Let\'s say I want to dynamically create a new DOM element and fill up its textContent/innerTe
You can concatenate the strings...
h1.innerHTML += "...I would like to insert a carriage return here..."; h1.innerHTML += "Ant the other line here... "; h1.innerHTML += "And so on...";
jsFiddle.