Print page button

  • 7 November 2013
  • 3 replies
  • 5 views

Hi,
I need a “print this page button”. How can I implement that? What would be the right javacript??

Thanks for your help!
Uwe


3 replies

Userlevel 3

Hi Schahab - Simply drop a button on your page and set the url to

javascript:window.print()

That should do the trick!

Works fine. Thanks a lot!
Is there a script for printing an uploaded file (*.jpg; *.pdf) as well?

Best,
Uwe

Userlevel 3

Hi Schahab - I’m personally unaware of a script that would do that. I did a search and it appears as it would be considered a “security hole”. Take a look at the discussion at the link below:

http://stackoverflow.com/questions/63…

Reply