Topic: Buttons
How do I get a Button to print a page?
An independent forum site for members of the Serif software community
You are not logged in. Please login or register.
Automated signup has been disabled for these forums. If you wish to register, please send an email to admin[at]punster[dot]me stating your preferred username.
Embedded images: Click on the Add image to post link below the message box. Your photo will be uploaded to the postimage website and then shared here via a thumbnail link. Click on the thumbnail for a larger view.
Private messages: There is no pop-up alert for new PMs on these forums, so you need to look out for the PM link (near the top right-hand corner of any forum page) becoming bold.
Alfred's Serif Users' Forums → WebPlus → Buttons
How do I get a Button to print a page?
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.
Alfred's Serif Users' Forums → WebPlus → Buttons
Powered by PunBB, supported by Informer Technologies, Inc.