Print window for special forms

Hello, I'm wondering how do I set up print window to print a special promotional form I want my customers to have. If I have a promotion and want the customers to print out the coupon from my page, I would want a new window so the coupon can come out looking like one. <br />
Any help would be great, thank you all.<!--content-->The easiest 2 ways that use no javascript are:<br />
<br />
Method 1:<br />
<br />
1) create an image for a coupon;<br />
2) create a link to that image (from thumbnail of the image or text link)<br />
3) have it open in the new window (size doesn't matter, since your goal is to have it printed, not just displayed as a coupon)<br />
<br />
for example<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"coupon.gif" target="_blank"><img src="coupon_thmumbnail.gif"></a><br />
<br />
or<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"coupon.gif" target="_blank"><click here to pring coupon</a><br />
<br />
Method 2: <br />
<br />
<br />
1) create a link to the coupon image (from thumbnail of the image or text link) and use the following text next to the image: "to print the coupon, righ-click your mouse and select "print image".<br />
<br />
<br />
Now more complicated method:<br />
<br />
<br />
<br />
<html><br />
<head><br />
<title>coupon</title><br />
<script language="JavaScript"><br />
<!--<br />
//BEGIN Script<br />
function new_window(url) <br />
{<br />
link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=250,height=150, left=80,top=30");link.focus();<br />
}<br />
</script><br />
</head><br />
<body><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/javascript:new_window('coupon.html')>get your coupon</a><br />
</body><br />
</html><br />
<br />
<br />
where coupon.html is a page that has a little "print" button and a coupon image, or you can just choose your image directly instead of html.<br />
<br />
Also, size the window to your specs. There are other ways, but these are the quickies.<!--content-->Forgot to ask:<br />
is it something you want people to have only after they submit the coupon via your forms? you may need a different approach then...<!--content-->Appreciated your help. The coupon just needed to be print out by the users and filled up after its printed. The printed coupon will then be given to our representatives and they will get a discount. I will try what you have suggested. Thanks again.<!--content-->
 
Back
Top