Created
December 11, 2017 13:24
-
-
Save youcoldfusion/d0f661d413fbc97505af5ce0f7d25135 to your computer and use it in GitHub Desktop.
Print the current page
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
<!-- Print the current page --> | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<p> Click the button and print the current page </p> | |
<button onclick="PrintIt()">Print</button> | |
<script> | |
function PrintIt() { | |
window.print(); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment