I'm trying to create a button that when clicked, creates a carriage return. For example, at the top of my webpage there are buttons that output words when clicked. Upon the click of the next button, the new word is placed immediately after the other words. I need this button to create a new line for the output words above it. I've tried a few codes along the lines of this:
<input type="button" value="Return"
onclick="document.getElementById('outputDiv').innerHTML=
document.getElementById('outputDiv').innerHTML + \br;">
<div id="outputDiv"></div>
Any help would be greatly appreciated.