Philip, this is an old thread, but I've got the same problem and the solution isn't working for me. Here is my code:
document.getElementById("inputText").value = "";
debug.innerHTML = "";
display.innerHTML = "Display: ";
testing.innerHTML = "";
The problem may be in the execution - I'm doing it here:
The assumption I'm making is hitting "F5" on the page will trigger the onload event. This doesn't seem to happen and therefore the routine isn't called (and the textarea doesn't get reset.
Assuming the code is OK (maybe a big assumption), is there a different event I should be hooking this into?