Im making a site with html and js where the user inputs some text and after they enter it, it displays on the screen. How do I have it so that after every time the users input gets displayed, a line space gets added?
function doME() {
nav.innerHTML = 'Welcome ' + answers.value;
Chatbox.innerHTML += " " + cbox.value;
}
login1.addEventListener('click',doME);
line four is where it displays what the user inputted, i want to add a linespace after the user input **
2
Answers
Add HTML to the end of your javascript function doME:
JS