DanR
asked on
onafterprint in Netscape
What I want to do is hide several elements of a page, print the page, then have the elements come back. Code below. Unfortunately, the elements come back before the user clicks Print. I understand that I can fix that in IE 5.5, but I need a solution in Netscape 7. Anyone know of a way to detect if the user has clicked Print?
function ReturnTheButtons() {
document.getElementById('C loseButton Top').styl e.visibili ty = 'visible';
document.getElementById('C loseButton Bottom').s tyle.visib ility = 'visible';
}
function PrintThisWindow() {
document.getElementById('C lickToPrin t').style. visibility = 'hidden';
document.getElementById('I nstruction Text').sty le.visibil ity = 'hidden';
document.getElementById('C loseButton Top').styl e.visibili ty = 'hidden';
document.getElementById('C loseButton Bottom').s tyle.visib ility = 'hidden';
window.print();
ReturnTheButtons();
}
function ReturnTheButtons() {
document.getElementById('C
document.getElementById('C
}
function PrintThisWindow() {
document.getElementById('C
document.getElementById('I
document.getElementById('C
document.getElementById('C
window.print();
ReturnTheButtons();
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Most generous! Thank you!
If you need additional help on this. Post it here :-)
CJ
If you need additional help on this. Post it here :-)
CJ
ASKER
But hey, you tried and I can't remember how to delete a question, so take the points.