How to hide web url on print for firefox

css, firefox, javascript

Solution

If you are using firefox do the following :

Go to the 'File' --> 'Page Setup' item on the menu, and then select the 'Margins & Header/Footer' tab in the dialog.

you should be able to change the drop-downs to set the Title or URL to –blank– instead, which will prevent them from printing. Note that you could also use this to put the page numbers at the top instead of the bottom if you prefer that. This was the normal approach to print without headers/url in general

Problem

When I print a webpage from Firefox, it automatically adds a header and footer including the website title, URL, date, and page number. I previously looked at this question for IE and Opera and this question, but I need to remove the header/footer specifically in Firefox. Is it possible to hide the header and footer programmatically using JavaScript or CSS?

Original source

Related problems