Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a button like this

<input type="submit" value="Submit">

I want when I click on the button it actually will act as "ctrl+p"....

Whats the easy way to do that???
Posted

HTML
<input type="submit" value="Submit" onclick="window.print()"></input>
 
Share this answer
 
Comments
rayhan12345 29-May-14 3:18am    
Wow!!!!!!!!! thanks!
try this.. :)

HTML
<button  önclick="javascript:window.print();">Print</button>
 
Share this answer
 
v3
Comments
rayhan12345 29-May-14 2:59am    
But this is Asp , I need in php........
Nirav Prabtani 29-May-14 3:12am    
try updated solution.. :)

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