I'm not totally sure how to describe this, but I'll do my best. In any browser other than Internet Explorer whenever I use DOM to append something to the page, the browser like "goes forward." It doesn't seem to refresh the page though, it just like takes it to the same page again. I was able to fix this in many of my scripts by adding a history(-1) if the browser was anything other than Internet Explorer. But now I found a problem when I have a button that adds a line of text into a form field. When that button is clicked in any other browser it for some reason adds the content and then immediately submits the form! I don't see why the script would do that. It is just a simple script saying
document.getElementById("formfield").value += "my line of text";
I don't understand why the other browsers keep doing this. How do I fix it?