how to get rid of the url when printing html
I used this code to print the current开发者_StackOverflow社区 page:
<form>
<input type="button" value="Print" onClick="window.print();" />
</form>
but when I view it using universal document converter. It has this url in the upper right corner. How do I get rid of it?
I believe that's a browser by browser setting and can't be set through the page. I'd love it if someone could prove me wrong, though. :)
Just as theIV says it depends on the browser.
One way of doing it would be to convert it to a PDF that can then be downloaded by the person wanting to print it. Maybe a starting point is this HTML to PDF converter online - try searching for more though.
精彩评论