Solved

How Do You Print an Entire Page Using JavaScript Print Functionality?

Posted on 2014-09-11
4
210 Views
Last Modified: 2014-09-22
I am only able to print the part of the page that is visible using JavaScript window.print() functionality.  I need to know how to print the full web page - including the contents the user has to scroll to get to.

How can this be done?

Thanks,

Dan
0
Comment
Question by:danielolorenz
  • 2
  • 2
4 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40317643
"JavaScript window.print()" should be opening the print dialog on the target machine.  JavaScript itself does not do any direct printing.  I usually use the "Print Preview" dialog to print what I want.  It will still print in pages because that's what printers do.
0
 

Author Comment

by:danielolorenz
ID: 40317955
I do not have the print preview dialogue.
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40318254
Although you can't open it with JavaScript, every browser that I know of has Print Preview on the File menu.  That includes Firefox, IE, Safari, Opera, and Chrome always opens it's own print preview for printing.  In addition, if I press Ctrl+P here in Firefox, the checked option is to print all pages.
0
 

Author Closing Comment

by:danielolorenz
ID: 40338253
Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question