473,480 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

want to print part of my page.. (window.print()??)

Hi,
I have page with left banner (links), footer and header and of cours
with some images and text. I want to print this page but without banner,
header and footer. Only images and text. Is it possible to do that?
window.print() is printing all informations on page but I want only some
part of it. Any ideas?
Greetings, Szymon Pudlik.

Aug 24 '05 #1
2 5576
Pudlik, Szymon wrote:
Hi,
I have page with left banner (links), footer and header and of cours
with some images and text. I want to print this page but without banner,
header and footer. Only images and text. Is it possible to do that?
window.print() is printing all informations on page but I want only some
part of it. Any ideas?
Greetings, Szymon Pudlik.


You can use media-dependant style sheets for this and for example hide
certain blocks when printing.

http://www.w3.org/TR/CSS21/media.html

This solution is not dependant on javascript.
Aug 24 '05 #2
Robert wrote:
You can use media-dependant style sheets for this and for example hide
certain blocks when printing.


I put media=print style and it works :) Thanks for your help!
Greetings, Szymon.
Aug 24 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
8337
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...
0
1161
by: ashj | last post by:
i have created an asp page and print it using window.print () comand. But in the printout i m not able to remove header like 'page1of 1 ' and footer. Is there any way to remove it dynamically?
8
4045
by: makunag | last post by:
Didn't get answer with google and in my regular forum. Came across this site and posting here. Your help will be highly appreciated ! Our application have frames - MainNav, TaskNave and Content....
0
7033
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6903
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7027
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
7071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6726
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
6861
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
2987
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2974
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.