使用脚本启用浏览器设置 [英] Enable Browser settings using scripts

查看:423
本文介绍了使用脚本启用浏览器设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



在我的项目中,我必须启用/禁用浏览器(IE,Crome,FF等...)使用当前用户名和密码自动登录,启用脚本设置..使用脚本。



我在谷歌搜索,但没有用。任何人都可以知道,如何使用JavaScript / VB Script / JQuery启用/禁用浏览器设置?



问候

Willington

Hi All

In my project, I have to enable/Disable Browsers(IE, Crome, FF etc..) "automatic logon with current username and password", "Enable Script" settings.. using script.

I searched on google, but no use. Can any one knows about, How to enable/disable Browser settings using JavaScript/VB Script/JQuery?

Regards
Willington

推荐答案

您无需在网上搜索。你只需要做一些思考。



这足以讨论以下情况你用JavaScript加载页面并希望JavaScript能够启用脚本。如果您的脚本可以执行,则意味着脚本已经启用。如果在浏览器中禁用了脚本,那么您的脚本也会被禁用。



还要考虑一下:如果Web应用程序可能启用了禁用脚本,那么想要使用这样的禁用,以及这种不安全的浏览器。不,Web应用程序无法控制浏览器设置。这会破坏这些设置的目的而且没有任何意义。



所以,这甚至不是可能与不可能的,整个问题根本就没有意义一点。



-SA
You don''t need to search on the Web. All you need is to do some thinking.

It''s quite enough to discuss the following situation you load the page with JavaScript and hope that JavaScript to enable scripting. If your script can be executed, it means scripting was already enabled. If scripting was disabled in the browser, your script is disabled, too.

Also think about this: if disabled scripting could possibly be enabled by a Web application, who would want to use such disabling, and such unsafe browser. No, Web application have no control over browser settings. It would defeat the purpose of those settings and would not make any sense.

So, this is not even about possible vs. impossible, the whole question simply makes no sense at all.

—SA


这篇关于使用脚本启用浏览器设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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