:icon_question:
i have a button in my web page and want it to print sumthing when clicked
hw do i do it?
i tried using window.print() but it doesnt work

Recommended Answers

All 2 Replies

hey dude ,,try ths it wrks onmy page

<input type="button" onclick="window.print();" value="print" runat="server">

this wil print the current page..

hope this wil help.....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.