"the page was replaced while you was trying ..."

Giganews Newsgroups
Subject: "the page was replaced while you was trying ..."
Posted by:  Carl (jh…@fgnfn.us)
Date: Fri, 12 Sep 2003

Hi,

I tried to print a document with the window.print method, but with netscape
7, i always get the error:"the page was replaced while you was trying to
print. Try again". I see "mydoc.htm" and the window of the printer appearing
on screen, but when clicking on 'ok' i get the error and 3 sec later,
'mydoc.htm' disappears.

With IE 6, no problem.

See the code: (even with setTimeout 20.000 it doesn't work)
yy="toolbar=no"
function printdoc()
{
opl=window.open("mydoc.htm","",yy)
opl.print()
setTimeout("opl.close()",3000)
}
document.getElementById("prt").onclick=printdoc

Thanks for any help

Replies