Clicking on the buttons below SHOULD NOT cause the form to be submitted.
function bAppend() {
document.getElementById('formfield').value += ' test';
}
<form method="post" action="/dreamhost/forum/button.pl" enctype="application/x-www-form-urlencoded" autocomplete="off"> <p> <strong>Text: </strong> <input type="text" name="formfield" size="50" id="formfield" /> </p> <p> <input type="button" name="buttonbutton" value="Append" onclick="bAppend()" /> <button type="button" name="buttonbutton" value="Append" onclick="bAppend()">Append</button> </p>