Add a Print button to a page To Add a Print button to a webpage: (The CSS will ensure the button is invisible when printed). Add to HTML: <button class="no-print" onclick="window.print()" style="padding:3px">Print this Page</button> Add to CSS Style Sheet: @media print { .no-print, .no-print * { display: none !important; } }
Created By: amos 3/23/2016 2:49:40 PM Updated: 3/23/2016 3:58:03 PM
|
|