Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

link to Print in a webpage

Can I put a link on my webpage to the Printer ?

To go to the same page like Ctrl-P goes in Firefox, IE.

Thank you.

like image 409
Cristi Avatar asked Apr 21 '09 10:04

Cristi


People also ask

How do I print text from a Web page?

Just select the desired text on the current page and press CTRL+P. This will bring up the Print dialog, where you can simply select the "Selection" option there. This will print out only the selected text. I just did this on my Firefox 30.0 and it worked perfectly.

What is the shortcut for printing a Web page?

All computer browsers today support the keyboard shortcut Ctrl + P (for Windows) or Command + P (for macOS) to start the print process.

How do I print a certain part of a web page in HTML?

You can use this function for print a specific area of web page or full web page content. Use printPageArea() function on onclick event of print button element and provide the content area div ID which you want to print.


1 Answers

<a href="javascript:if(window.print)window.print()">Print</a> 
like image 63
dave4420 Avatar answered Sep 25 '22 04:09

dave4420