I'm invoking the navigator print function using a simple window.print(); call. It prints perfect (I want to print the same I see on the screen, so I don't really use a special CSS to print) but it showing the link locations next to the text link, something like:
Homepage (http://localhost)
To be clearer: I don't want to have the link locations near the links in the printed version, I have control over the CSS but I can't find this behaviour defined anywhere, so I think is a navigator-related issue!
EDIT: This happens under Firefox 3.6.8 and the last Chrome, on Ubuntu an Windows XP/Vista.
I faced the same problem, if you're using chrome, the trick is when displaying the print window, this one contains a left config panel which gives some configuration of display mode and other, there is a link below named : more params or more config (I had in french so I tried to translate it ), click on it after that it will show some additionnal options, among them, there is a check box "header and footer" uncheck it, and it will hide the "localhost...." hopefully it will help
Every browser having setting of printing header and footer ,and background graphics If you disable this setting of printing header and footer then it will not show on your print page
While many css options have been suggested, if you wish to get rid of the links and headings in the header/footer which is forced on each page, there is a setting just for you. As shown below.
That's it.
For anyone using Bootstrap 3, the selector used is:
And can be overriden with something like:
Use additional CSS for print.
See here: http://www.webcredible.co.uk/user-friendly-resources/css/print-stylesheet.shtml
I found the other solutions don't work (anymore) cross-browser. The following works in FF 29, Chrome 35, IE 11: