website printing headers

User 355448 Photo


Ambassador
3,144 posts

I have a button on my site calendars that will print just that specific month.

Is there any code I can use that will prevent the printer from adding the title, url, date and time?

Is this something only controlled by the browser?

I am just thinking about ways to make the printouts more visually appealing if someone prints them
User 463058 Photo


Ambassador
1,086 posts

Yep, that's controlled by the browser. In Firefox and IE 8 the settings are in File>Page Setup.
User 355448 Photo


Ambassador
3,144 posts

Cary,

In some cases, it would be nice to be able to override the browser settings.
User 37670 Photo


Registered User
2,138 posts

Bill, I agree with you, but it is not considered fair practice to do so. Many users adjust their browser preferences due to special needs. Writing any web program that overrides those needs is not allowed by the W3C. Such a coded program would be seen as a Virus by most virus checking software as well.

In the W3C rules, no programming code in a web page is allowed to affect or override the setting used by the end user. Even good .css code can be cancelled out by browser preferences set by the end user. Have you seen those websites that change the look of the mouse curser? For anyone who need visual help setting to see their mouse (high contrast, bigger curser, bruight color) it would not be fair to change those settings without their permission, and hence the reason for the W3C to be strict about what can and can not be changed by the web page coding.

The only thing you can do is list the steps for a user to shut that feature off in their web browser before printing, if the so choose. Then it's up to the end user to decide for themselves if they want it to print the url and date.
E-Learning Specialist
www.mainsites.ca is my website, and yes, some of it is crappy.
User 355448 Photo


Ambassador
3,144 posts

Cliff,

Good suggestion. I will check and see how many actually want to print, and see if it is worth the effort to write something that covers all browsers.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.