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

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -