阅读/设置IE选项的最佳方式是什么? [英] Best way to read/set IE options?

查看:105
本文介绍了阅读/设置IE选项的最佳方式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Javascript中从网页读取和/或设置Internet Explorer选项的最佳方法是什么?我知道这些都在注册表设置中。

What is the best way to read and/or set Internet Explorer options from a web page in Javascript? I know that these are in registry settings.

例如,我正在使用 JavaScript Diagram Builder ,用于在网页中动态生成条形图。这使用浮动DIV中的背景颜色来生成条形。我希望能够阅读用于打印背景颜色的浏览器设置,如果没有选中,则要么警告用户颜色不会打印,要么以编程方式选择此选项。

For example, I'm using the JavaScript Diagram Builder to dynamically generate bar charts within a web page. This uses the background color in floating DIVs to generate the bars. I would like to be able to read the browser setting for printing background colors, and if not checked, either warn the user that the colors won't print, or programatically select this option.

编辑:当我考虑做类似的产品时,我认为它们主要只是测试Java或JavaScript或Cookie是否被禁用,这可以在不阅读注册表的情况下完成。

As I think about the products that do something similar, I think they mostly just test whether Java or JavaScript or Cookies are disabled, which can be done without reading the registry.

所以我想共识是我不应该尝试做什么。

So I guess the consensus is that what I want to do shouldn't be attempted.

推荐答案

Web页面没有业务读取用户的设置,因此没有此接口。

Web pages have no business reading users' settings, therefore there is no interface for this.

这篇关于阅读/设置IE选项的最佳方式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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