HTML Editor
Run
<!DOCTYPE html> <html lang="en-US"> <body onbeforeprint="myFunction()"> <p>Print me</p> <p>Press Ctrl+P / Cmd+P/ Use Mouse</p> <script> function myFunction(){ alert("This document is about to print"); } </script> </body> </html>
OUTPUT
×
Save as
Private
Tag
AJAX
Canvas
CSS
Google Charts
HTML
Javascript
jQuery
JSON
SASS
SVG
Description
Save