954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

print web page

I would like to print a Web page with
javascript method window.print()
without pages number and footer.
it's possible ?

beppeilbuono
Newbie Poster
5 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

What happens when the print method is called? Does it directly print the page or pops up a print dialog?

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 

pops up a print dialog (but this is not a problem).
I don't like on the right corner PAGE 1 OF 1 and in the footer the address of the page.

beppeilbuono
Newbie Poster
5 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

But you have got to realize that the window.print() method provides little or no control over the printing settings. Its just a nicety and is equivalent to pressing Ctrl + P.

Even the documentation doesn't provide any significant information about this function. It actually makes sense since its the user who decides what and how things have to printed and not the site developer. Messing around a bit with your printer settings is the only way to go.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 


......invoice's tags.....

beppeilbuono
Newbie Poster
5 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

This is a function of the particular printer's driver and the PAGE SETUP function in the browser the USER of the page is using.

It belongs to the owner of that user's computer, not to the web page designer.

It is a security violation for a web page to be able to alter those settings. You have no right to change it.

MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
 

thanks to all I've solved my problem

beppeilbuono
Newbie Poster
5 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

hi, can u pls tell me how do you solved your problem?

jokohu
Newbie Poster
1 post since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You