problem with window.print (NN7)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top