Click here to Skip to main content
15,914,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi here is my code

<button><a title="Print Screen" alt="Print Screen"  önclick="window.print();" target="_blank"
           style="removed:pointer;">class="black glyphicon glyphicon-print"></a></button>


print button option is working in chrome but not working in firefox.

pls help me in fixing this issue with best guidance..

thanks..
Posted
Comments
Schatak 22-Apr-14 4:34am    
meaning?? what is not working?
tekthiyagu 22-Apr-14 4:38am    
print button option is working in chrome but not in firefox

here is the code
<button></button>

will u help me in fixing it.

thanks
tekthiyagu 22-Apr-14 4:39am    
<pre></pre>

1 solution

try this:
<a id="btnPrint" title="Print" onclick="javascript:window.print();return false;"></a>
 
Share this answer
 
Comments
tekthiyagu 22-Apr-14 5:00am    
<pre lang="xml">hi

<pre><a id="btnPrint" title="Print" onclick="javascript:window.print();return false;"></a></pre>

this code is working fine in chrome but not in firefox ..can u give some best workable code to fix in firefox

thanks</pre>
Schatak 22-Apr-14 5:57am    
i tried it in firefox and its working.... which version you have?
have you checked popups are blocked or not.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900