...

View Full Version : window.print() suppressing xtra info



jmd
06-17-2004, 09:10 PM
I wish to suppress the browsers display of the webpage title, url, date, and page number on the printed page. Each of these items appears in each of the four corners of the page.
Is there any way to do this? Thank you, in advance!

canadianjameson
06-17-2004, 09:31 PM
i've actually been looking for the same answer for a while. lets hope its possible :)

if you ever want something on your actual page to not print, this is how you do it though:

in the <head>


<style type="text/css">
@media print { .notPrinted { display: none; } }
</style>


and on whatever you don't want printed:


<img src="image.jpg" class="notPrinted">
<table class="notPrinted">
<a href="link.html" class="notPrinted">


whatever you dont want printed, give it the class="notPrinted" in its <...>

maybe that'll come in handy later

Roy Sinclair
06-17-2004, 10:18 PM
That code is added by the browser itself to help people know where the "document" they printed came from and to prevent possible "social engineering" problems. There's a third party plugin for IE you can get that allows a lot more control of printing but it's ActiveX, there's nothing that's cross-browser or even readily usable outside of an intranet.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum