0

I need to remove the footer and header from a webpage and show only the content.
I did this, but in the page, URL and date are displayed, how to remove them?

<input type="button" onClick="window.print()" value="Print"/>

And window.print() function generates a file with the extension .xps. There is a way to without generate this file, just open a window and do print.

Ashraf Bashir
  • 9,356
  • 13
  • 53
  • 80
Menfis Menfis
  • 43
  • 1
  • 2
  • 9

1 Answers1

-2

Create an hidden iFrame, insert the content what you need and then call print() on the frame. Otherwise you can use an jQuery plugin.

XPS file? Install/select your printer!

Adrian Preuss
  • 3,069
  • 22
  • 40