HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <h2>Try to Print this page</h2> <p><strong>Tips</strong> : <br>Windows - Ctrl + P<br>Mac - Cmd + P</p> <script> function myFunction() { alert("This document is now being printed"); } window.addEventListener("beforeprint", myFunction); </script> </body> </html>
OUTPUT
×

Save as Private