- <img src="images/icon_print.gif" style="cursor: pointer; vertical-align: middle"
- border="0" alt="image" onclick="javascript:window.print();document.location.reload();" /><br />
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 250 SHARP for every blog they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · JavaScriptLearn .NET, C#, and JavaScript: A Complete Beginner’s ProgrammingDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Matthew HoskinsPosted Jan 6, 2013, 7:59 AM EST
How are you supposed to write the image source I cannot get my button to display even after copying the address from file explorer. Is there not just an action code to make whatever graphic you use print on user click without altering the original image? Could you please explain this? This is what I placed in the tag but I am still doing something wrong: <img src="Additional/Print_Button.png" style="cursor: pointer; vertical-align: middle" border="0" alt="image" onclick="javascript:window.print();document.location.reload();" /><br />
Vijendra SinghPosted Dec 25, 2012, 11:10 PM EST
It is single line code of take the print of web page