473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Window.Print

Hello all,

I really need help. I am having a problem using the javascript print function. I am tryint to print the page but only the page that is visible is printing. The entire page won't print. I am using the code:

onclick="window.print()"

I don't know programming that well so, someone please help me!!
Mar 22 '07 #1
6 1998
sicarie
4,677 Expert Mod 4TB
Hello all,

I really need help. I am having a problem using the javascript print function. I am tryint to print the page but only the page that is visible is printing. The entire page won't print. I am using the code:

onclick="window.print()"

I don't know programming that well so, someone please help me!!
This is written in javascript?
Mar 22 '07 #2
Well the page is an html page, with javascript contained it. The problem is I have a scrollbar on the page. And when I print it only prints the top content and not anything below the visible screen.
Mar 22 '07 #3
sicarie
4,677 Expert Mod 4TB
Well the page is an html page, with javascript contained it. The problem is I have a scrollbar on the page. And when I print it only prints the top content and not anything below the visible screen.
Then I'd recommend the javascript forum that can be found on the right hand side of the page.
Mar 22 '07 #4
r035198x
13,262 8TB
Moved to Javascript forum
Mar 22 '07 #5
mgast
9
Can you be more specific as to what you are trying to print? Are you using frames? Can you give us an example, or a sample of the code you are working on?
Mar 22 '07 #6
AricC
1,892 Expert 1GB
Hello all,

I really need help. I am having a problem using the javascript print function. I am tryint to print the page but only the page that is visible is printing. The entire page won't print. I am using the code:

onclick="window.print()"

I don't know programming that well so, someone please help me!!
Sunshine,
We need to see the code that isn't printing correctly.
Mar 23 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jawahar Rajan | last post by:
All, I have a printer friendly page that is opened when a user clicks a link on my page to get the printer friendly version, How ever when they close out the printer friendly version and return to...
1
by: John | last post by:
I am having a problem with window.print in a popup window. I am creating 2 popup windows both with a print button in them, 1 works the other doesn't. Code runs in a javascript function on a...
2
by: dan | last post by:
This works in mozilla but I can't figure out why this won't work in IE. Say I have this html <html> header goes here header goes here
3
by: Craig | last post by:
First of all, this one is driving me crazy, so thanks in advance for any help!! I've got a javascript function in a parent document that generates an HTML document on the fly when a button is...
2
by: Asad | last post by:
I have a main window that creates a new window called printWin (which contains the printable format of the page). From the main window I embed a javascript in the printWin window that calls the...
1
by: dibyendu_k | last post by:
Hi, There is a problem i cant solve regarding Internet Explorer 5.5. It is regarding the Print Dialog Box. From a webpage if I open a popup window (window.open()) containing buttons Print and...
6
by: bwucke | last post by:
Short: One window writes to <input>, the other reads the same <input>. Is it a race condition or are the reads/writes atomic? Long: My app has an option to print results in a nicely formatted,...
22
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the...
2
by: colinzhu | last post by:
I want to have the print dialog shown automatically after the the page is loaded, but when I try to call window.print() BEFORE the iframe, the print dialog is not shown at all. Anyone can help? ...
1
by: =?Utf-8?B?RGlmZmlkZW50?= | last post by:
Hello All, I am dumping the HTML content of a page using document.write. As part of this HTML code, I have an input "Print" button which does nothing but calling the window.print Window.print...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.