SyntaxFix
Write A Post
Hire A Developer
Questions
You can concatenate the strings...
h1.innerHTML += "...I would like to insert a carriage return here...<br />"; h1.innerHTML += "Ant the other line here... <br />"; h1.innerHTML += "And so on...<br />";
jsFiddle.