Best way to read / set IE options?

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

For example, I use JavaScript Diagram Builder to dynamically create bar charts on a web page. It uses background color in floating DIVs to generate bars. I would like to be able to read the browser settings for printing background colors, and if I do not check, either warn the user that the colors will not print, or select this option programmatically.

EDIT: since I think of products that do something similar, I think they basically just check if Java or JavaScript or Cookies are disabled, which can be done without reading the registry.

So, I think that the consensus on what I want to do should not be tried.

0
javascript internet-explorer settings registry
source share
3 answers

Web pages do not have read settings for business data, so there is no interface for this.

+5
source share

You can style the stripes using the left edge deck, instead of using the background color.

Like this:

<style> div.bar { width:1px; border-left:10px solid red; } </style> <div class="bar" style="height:100px"></div> 

Obviously, this depends on the versatility of the product you are using. But I don’t understand why it would be painful to do this in the print stylesheet, at least.

+1
source share

It sounds like it would be a big security hole, one of which the IE team would have been nailed very closed.

0
source share

All Articles