View Full Version : Using Cross-browser print button to print a different page

04-10-2008, 12:36 AM
1) Script Title: Dynamic Drive- Cross-browser print button

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/other1.htm

3) Describe problem: Can I print another web page with this button? If so, how do I change the script? I want to print a coupon without printing the button. So, I thought I could put the button on a page with a sample of the coupon and the coupon on a different page.
I may be confused, but I'm new.

04-11-2008, 04:40 AM
Here is some CSS that works. I found it on another site.


<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 2</title>

<style type="text/css">
@media print {
.hidebutton {



<div align="center">
<table border="0" cellpadding="0" cellspacing="0">
<td width="100%">.</td>
<td width="100%"><img border="0" src="COUPON-BW-1.gif" width="625" height="425"></td>
<font color="#FFFFFF">
<td align="center">.</font>
<p>.<input type="Button" name="Capture" value="Print Coupon" onclick="window.print()" class="hidebutton" />

<td width="100%">