How do I add a print button to my website?

  • 0
  • 3
  • Question
  • Updated 4 years ago
  • Answered
Note: We want to provide a few common and useful snippets for your use, but our support department is not able to assist you with editing code.  They can help you with code placement.


You can add this code in an HTML box on your page to have a Print button

<input type="button"
onClick="window.print()"
value="Print This Page"/>
Photo of Drew N

Drew N, Community Manager

  • 252,538 Points 100k badge 2x thumb

Posted 4 years ago

  • 0
  • 3
Photo of landestw1338

landestw1338

  • 566 Points 500 badge 2x thumb
This reply was created from a merged topic originally titled
Print function for guests at my website.


I would like for my website to allow guests to click and print from my website. Does Homestead have any codes for this function?
Photo of Drew N

Drew N, Community Manager

  • 252,538 Points 100k badge 2x thumb
The browser will have a print function in the file menu, but here you can add a button to the page.  Keep in mind that it is difficult to make a page that matches the printed page. 

Thanks

Drew
Photo of Ed0191

Ed0191

  • 102 Points 100 badge 2x thumb
This reply was created from a merged topic originally titled
Can I print a page from my website. Is there a print option?.
Photo of Mike F.

Mike F., Alum

  • 184,338 Points 100k badge 2x thumb
You can always just use the print feature that is already built into your web browser, but if you wan to put a print button right on the web page you can try the code above. if you wish.

Mike