On 12 Dec 2007, at 11:46, Hans-Joerg Bibiko wrote:
function output (str) { document.getElementById("main").innerHTML = "<pre><span style='font- size:9pt'>" + str + "</span></pre>"; } [...] Is there something wrong with my code? I cannot see the point.
The output function is called when there is output, so it will be called multiple times (at least FILE_SIZE / PAGE_SIZE (8 KB) times) -- since your function overwrites the existing innerHTML, you will only see the result of the last call.