window.print() in javascript with background images?
I would like to use the window.print() for the user to print out the page, but I need to include the background images. Is that possible somehow?
Status:
Open Dec 22, 2006 - 01:28 AM
JavaScript, html, web development
4answers
Answers
Dec 22, 2006 - 04:22 AM
You can print page with background image like this way...
# Open an Internet Explorer window.
# Select Tools | Options... from the menu.
# Go to the Advanced tab.
# Make sure Print background images and colors is checked under Printing.
# Click Apply.
Dec 22, 2006 - 04:30 AM
thanks for your response tikepatel, but it was not exactly that solution I was looking for.
I need to make a page that can be printed out without changing the default settings of the normal internet user.
I thought there might be a way of tagging the page or calling another method or with some paramter that would include background images as well. Or even on the background image itself, indicating whether it should be printed out or not.
Jan 09, 2007 - 10:53 AM
I would imagine it is simply not possible. I am wondering what implications it might have if a script can change the users browser settings. Are there other examples of that?
Jakob
Jan 27, 2007 - 03:18 AM
i can't see what implications there should be with this. You can change the history through javascript as well, but anyway, it's fine that printing has a default way of working, but there might also be a way to override that default, if you knew that your users would want the background also.
Anyway, since it isn't possible, I guess jgivoni has the right answer. tikepatel you get a few points for your contribution as well, although it wasn't exactly what I was looking for.
Answer this question
Share Your Own Experience & Expertise
We look to ensure that every question is answered by the best people with relevant expertise and experience, the best answers include multiple perspectives. Do you have relevant expertise or experience to contribute your answer to any of these commonly asked questions?
Add New Comment