Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- 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>
Add Comment
Please, Sign In to add comment