M
Mike P
I am trying to print a webpage and making some objects invisible for the
print, and then visible again after. But my code does not work :
function PrintInvoice()
{
document.getElementById("Button1").style.visibility = "hidden";
document.getElementById("Button2").style.visibility = "hidden";
window.print();
document.getElementById("Button1").style.visibility = "visible";
document.getElementById("Button2").style.visibility = "visible";
}
Can anybody with good javascript skills help?
print, and then visible again after. But my code does not work :
function PrintInvoice()
{
document.getElementById("Button1").style.visibility = "hidden";
document.getElementById("Button2").style.visibility = "hidden";
window.print();
document.getElementById("Button1").style.visibility = "visible";
document.getElementById("Button2").style.visibility = "visible";
}
Can anybody with good javascript skills help?