C
Carl
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
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