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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -