Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function printPage() {
if(document.all) { = 'hidden';
window.print(); = 'visible';
else {
document.getElementById('divButtons').style.visibility = 'hidden';
document.getElementById('divButtons').style.visibility = 'visible';
}//divButton are the id of the tag containing the the print tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.