开发者

how to get rid of the url when printing html

开发者 https://www.devze.com 2022-12-21 21:51 出处:网络
I used this code to print the current开发者_StackOverflow社区 page: <form> <input type=\"button\" value=\"Print\" onClick=\"window.print();\" />

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号