javascript - how to check if the print is done -
i printing webpage using javascript code: window.print()
, need execute function after printing webpage in chrome browser.
i stuck, can suggest me how proceed here please?
it sounds me trying write webpage using javascript.
you should read on basic javascript, recommend attending free course @ codecademy. following basic example of how document.write()
on button click. please note printing tag used printing documents on physical paper.
<!doctype html> <html> <body> <h1>my first web page</h1> <p>my first paragraph.</p> <button onclick="document.write(5 + 6)">try it</button> </body> </html>
Comments
Post a Comment