如何禁用打印,使用javascript保存浏览器的选项, [英] How to disable print,save options of a browser using javascript,

查看:260
本文介绍了如何禁用打印,使用javascript保存浏览器的选项,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们!



当天的问候!!!



这个论坛的新用户!



有谁可以帮我解决这个问题? plss。!



如何使用javascript禁用打印,保存浏览器的选项。





谢谢和问候。

Hi Friends!

Greetings for the day!!!

Am new to this forum!

Can anyone help me out in this query? plss.!

How to disable print,save options of a browser using javascript.


Thanks & Regards.

推荐答案

简单地说,你不能这样做。



您无法从Web应用程序与浏览器设置进行交互。
Simply, you can't do that.

You cannot interact with Browser Settings from a Web App.


这是不可能的。没有浏览器会将其设置公开给Web应用程序。 JScript都不会支持它。
It's impossible. No browser will expose its settings to a web app. Neither JScript will support it.


< html xmlns =http://www.w3.org/1999/xhtml>

< head runat =server>

< meta http-equiv =Content-Typecontent =text / html; charset = UTF-8>

< title>< / title>

< style type =text / css>

@media print {

body {display:none;}

}

< / style>

< / head>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<style type="text/css">
@media print{
body {display:none;}
}
</style>
</head>


这篇关于如何禁用打印,使用javascript保存浏览器的选项,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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