-
Using Cross-browser print button to print a different page
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.
-
-
Here is some CSS that works. I found it on another site.
<html>
<head>
<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 {
display:none;
}
}
</style>
</head>
<body>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%">.</td>
</tr>
<tr>
<td width="100%"><img border="0" src="COUPON-BW-1.gif" width="625" height="425"></td>
</tr>
<tr>
<font color="#FFFFFF">
<td align="center">.</font>
<p>.<input type="Button" name="Capture" value="Print Coupon" onclick="window.print()" class="hidebutton" />
<td width="100%">
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks