开发者

Remove file location from document print using Javascript

I am using Javascript to print a div contents it works fine but it also prints the file开发者_如何学编程 location on top-right position which gives an odd impression on the output. here i attached the snap of it.

Remove file location from document print using Javascript

Thanks.


This link has nothing to do with your code. It is put there by the browsers printing engine.

In most browsers, the user can change that, in others (e.g. Chrome) they can't.

Either way, there's nothing you can do from your end.


Your browser controls this. There are no javascript functions to control this (and likely never will be due to potential for abuse)


Thanks to all specially zzzzBov From the menu in the top left corner of your browser, choose "File", then "Page setup..". Go to the second tab called "Margins & Header / Footer", in the drop down lists choose "Blank" for all the items you don't want printed. The screenshot below gives a better view of what I mean.

Remove file location from document print using Javascript

And for other browsers you can read the complete article on enter link description here

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜