如何禁用"保存为"和"打印"浏览器选项 [英] how to disable "save as" and "print" option of browser
本文介绍了如何禁用"保存为"和"打印"浏览器选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何一个可以告诉我如何禁用另存为浏览器菜单栏和打印选项?
如果我去通过文件 - >另存为或打印,文档会打印并保存。
我要prevent这一点。
任何一个可以帮助我在这个问题?
在此先感谢
解决方案
<风格类型=文/ CSS>
@media打印{
身体{显示:无;}
}
< /风格>
以上code可以用来从打印webpage.I禁用用户已经测试了这个code,在IE8,Chrome和Firefox的工作对我罚款。
Can any one tell me how to disable "save as" and "print" option of browser menu bar? if I go through File->Save As or Print, the document gets printed and saved.
I want to prevent this.
Can any one help me out in this issue?
Thanks in advance
解决方案
<style type="text/css">
@media print{
body {display:none;}
}
</style>
The above code can be used to disable the user from printing the webpage.I have tested this code, its working fine for me in IE8, Chrome and Firefox.
这篇关于如何禁用&QUOT;保存为&QUOT;和&QUOT;打印&QUOT;浏览器选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文