Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to set button in window.print() page

enter image description here

I want to add some buttons after the print modal was showed. Just like the picture above. Anyone give some hands? Thank you.

w3schools demo

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Since printing is browser feature (think of client-side), you are not able to make changes/events normally in that area. Reason behind that is likely to be security (imagine a simple website printing lots of files from your printer when you are absent).

A likely solution would be opening blank page and using that page as "preview" page and add button there (you will still have to navigate user to this modal though).

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading