javascript print button
<p>I'm facing a problem with my print button:</p>

<pre><code>&lt;style type="text/css"&gt;
@media print {
input#hideme {
display:none;
}
}
&lt;/style&gt;

&lt;input type='button' id='hideme' onClick='window.print();' value='Print Receipt'&gt;
</code></pre>

<p>When I open my application and click my print button,  it shows directly the print popup.
But when I cancel that print popup  and again try to click, the print button will not open the popup.</p>
