Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Remove the window.print() header and footer.

530085Aug 9 2007 — edited Aug 13 2007
I 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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 10 2007
Added on Aug 9 2007
2 comments
871 views