Remove the window.print() header and footer.
530085Aug 9 2007 — edited Aug 13 2007I hope this is the right forum to ask this in. I'm coding primarily a pl/sql program that creates a webpage. Part of my code uses a small piece of Javascript to print the page.
I am using the following code to do a print of the current page the user is on:
htp.p('<input type=submit value="Validate and Print" onclick="window.print();">');
The window.print command prints the page I coded for just fine for the most part. However, the command also includes a header and a footer that I did not want. For example, the Webpage title and page number is in the header. The URL and date are in the footer. I want to have the window.print command print without the header of footer info. Is there something I can add to my code to make that possible?
Thanks!