Created
April 15, 2016 09:29
-
-
Save Mutungi/02e010e9f09a07d8e4476fc8e8f96c6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function printPage() { | |
if(document.all) { | |
document.all.divButtons.style.visibility = 'hidden'; | |
window.print(); | |
document.all.divButtons.style.visibility = 'visible'; | |
} | |
else { | |
document.getElementById('divButtons').style.visibility = 'hidden'; | |
window.print(); | |
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