window.print时如何隐藏打印按钮 [英] how to hide print button when window.print

查看:647
本文介绍了window.print时如何隐藏打印按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在window.print时隐藏打印按钮,还隐藏页面编号,日期和时间,打印页面的URL

how to hide print button when window.print, also hide page number, date and time, url of printing page

推荐答案

对不起,你不能这样做它。这是默认的浏览器行为。



将来可能会有浏览器允许我们编写代码,但目前没有这样的支持。
Sorry, you can't do it. It is default browser behaviour.

May be in future, browsers will allow us to code for that, but currently there is no such support.


这篇关于window.print时如何隐藏打印按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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