<input type = "text" id="text" /> <input type="button" value="add" onclick = "document.getElementById('out').value += document.getElementById('text').value + '\n'"> <textarea id="out"></textarea>