Topic: Buttons

How do I get a Button to print a page?

Re: Buttons

Welcome, Tom! Thanks for joining us here.

You can print the current page by adding a form button and setting its 'onclick' attribute to

javascript:window.print();

To configure the button so that it only appears on the screen, not on the printed page, add a '@media print' CSS rule that sets the 'display' property to 'none'.

Download the attached *.wpp file, open it in WPX8, right-click on the 'Print this page' button and choose 'HTML Source...' to view the code.

Post's attachments

WPX8_Print-this-page.wpp 27.23 kb, 1 downloads since 2024-05-29 

You don't have the permssions to download the attachments of this post.
"I am ignorant of absolute truth. But I am humble before my ignorance, and therein lies my honour and my reward.”
— Kahlil Gibran