JavaScript的打印()没有URL和日期 [英] JavaScript print() without URL and Date

查看:561
本文介绍了JavaScript的打印()没有URL和日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为写作,管理和印刷钞票有点CMS为一家公司。钞票被保存在服务器为HTML文件上。 JavaScript的code是 document.billFrame.print(); 。是否有可能prevent打印URL和日期的浏览器?因为我知道,它可能无法使用JavaScript / CSS,是否有可能安装一个浏览器插件之类的东西,对于Safari /铬或FF?在CMS将只用于一台计算机上,因此,如果需要的插件也没关系。

I made a little "CMS" for writing, managing and printing bills for a company. The bills are saved on the server as HTML-files. The javascript code is document.billFrame.print();. Is it possible to prevent the browser of printing the URL and date? Because I know that it's probably not possible with JavaScript/CSS, is it possible to install a browser-Plugin or something like that for Safari/Chrome or FF? The CMS will be only used on one computer, so it doesn't matter if a plugin is required.

感谢您的帮助。

推荐答案

在Firefox中:

打印 - >页面设置 - >页边距和放大器;页眉/页脚

Print -> Page Setup -> Margins & Headers/Footers

在Chrome浏览器:

In Chrome:

打印 - >取消选中页眉和页脚在选项

Print -> Uncheck Headers and Footers under Options

这篇关于JavaScript的打印()没有URL和日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆