printing a webpage via a button

How do I print a page using <br />
<br />
<input type="button" value="Print Document" name="PrintBtn" onClick="window.print()"><br />
<br />
Without having the button itself show up on the printed document?<!--content-->You can do something like this:<br />
<br />
<style type="text/css"><br />
@media print {<br />
.noprint {<br />
display: none;<br />
}<br />
}<br />
</style><br />
<br />
<input class="noprint" ...><br />
<br />
Adam<!--content-->
 
Back
Top