window.print() does nothing

E

e

IE6. I have a 'print' image, and the following js:

document.Form2.imgPrintAll.onclick = function printAll()
{
toPrint.innerHTML = document.getElementById('lblReportCache').innerHTML;
window.print();
}

This executes without error, and the innerHTML is being changed properly,
and I can put an alert in there that fires as expected. The window.print();
line simply does absolutely nothing. No error, no dialog pops up, nothing
prints. What's going on?
 

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,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top