0

When am printing a page from internet explorer v11, the printed document contains the URL of the webpage which the client doesnt want to appear. I have searched various forms and articles for the solution but the effort gone in vain.

Is there a working solution to hide the url in IE 11?

  • This thread may be of some use; a lot of different answers / options https://stackoverflow.com/questions/1960939/disabling-browser-print-options-headers-footers-margins-from-page – MattHamer5 Sep 30 '19 at 08:40
  • I have gone through that thread , the options suggested in that thread works fine with Chrome and Firefox but not with IE – Harish Aryasomayajula Sep 30 '19 at 09:08

4 Answers4

0

Try it by css:

@print {
    @page :footer {
        display: none
    }

    @page :header {
        display: none
    }
}
  • Not working. this code works fine in Chrome – Harish Aryasomayajula Sep 30 '19 at 08:34
0

This is often a browser-specific print setting. See Firefox and Internet Explorer examples. The client will have to adjust their print settings in IE11 before printing the page.

MiK
  • 918
  • 4
  • 16
0

sorry, we cant control the print job header and footer with css nor with Javascript, its browser and printer setting,

http://www.mintprintables.com/print-tips/header-footer-windows/

fahd4007
  • 544
  • 4
  • 14
0

If the header and footer is a part of your web page than you can try to control it using CSS code.

Here, you want to access and change the IE browser page settings for print using code which is not possible.

User have to change their browser page settings for print and need to remove URL manually is only the way.

enter image description here

Deepak-MSFT
  • 10,379
  • 1
  • 12
  • 19