Remove date and print link

Asked

Viewed 950 times

1

I’m making a screen with various information and images, so far so good. My problem is that when trying to print this screen, date appears in the header and the link in the footer. Is there any way to remove this other than by setting up the browser?

1 answer

1


No, there is no.

That one "Feature" is totally independent of your source code. There is no Markup to make them disappear, since this does not come from any HTML specification, and there is no Javascript code to control this because the developers of the browsers in general do not publish API’s for this. Even if there was a single API and cross-browser to control the printing in this way, removing this information from the printing would interfere with something that is user’s choice, and therefore could be seen as a security breach.

Here and there you can see someone suggest a way around this by trying to control the print margins. That’s a gambiarra and it’s not guaranteed to work in all browsers - and even if it works, you don’t know how long it will continue to work. I personally believe that there is a special place in hell for all those who try to circumvent the standard behavior of browsers.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.