How do I add a print button to my website?

  • 0
  • 3
  • Question
  • Updated 3 months 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

  • 259,114 Points 100k badge 2x thumb

Posted 5 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

  • 259,114 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,438 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
Photo of Richard5764

Richard5764

  • 212 Points 100 badge 2x thumb
Your HTML code worked on my sitebuilder plus website but when I use it on my site using the new editor it returns a blank page.
Photo of Elyzabeth

Elyzabeth , Official Rep

  • 17,474 Points 10k badge 2x thumb
This code was from 2014, when we were using that older builder. It is not made for Website Builder. If you need that function, you can most likely find code for that through Google.