This is still driving my tired little brain nuts.
I have put an alert message in just after writing the frame. It will display the correct text, which will actually display in the <textarea> in the background. Then when you click on OK, you will see the "ghost" text return.
Variable "c" contains HTML/JS code to create the page:
In addition, I have commented out all of my code which (within functions) changes the <textarea> so I don't see how I can be causing this.
// xxx document.f1.results.value=Results;
// xxx document.f1.results.value=text;
// xxx document.f1.results.value=undoResults;
The only place left that puts text into the <textarea> is when the page is created.
// Results panel (part of form name=f1)
c+="<tr><td align=center colspan=3>";
c+="<textarea name=results border=1 cols=48 rows="+High+">"+text+"</textarea>";
And it looks like this works fine as the correct text appears in the alert, and on the screen before the "ghost" text scares it away!