开发者

Is there a way to find out programmatically (C#), if JavaScript is enabled in Internet Explorer?

开发者 https://www.devze.com 2023-04-12 14:20 出处:网络
I\'m trying to f开发者_JAVA技巧ind out in a prerequisite checker tool (written in C#), if Internet Explorer has enabled JavaScript. I don\'t want to change it ... just read out the information. Is tha

I'm trying to f开发者_JAVA技巧ind out in a prerequisite checker tool (written in C#), if Internet Explorer has enabled JavaScript. I don't want to change it ... just read out the information. Is that available somewhere in the registry?


First you need to know what security zone the website(s) that needs javascript would fall under.

When you know what zone you are looking for you can find it under SOFTWARE\Windows\CurrentVersion\Internet Settings\Zones...

The parameters are not humanreadable though so you'd need to lookup some information regarding those.

However it all feels a bit sketchy doing it this way I hope that someone can give you a better answer than mine, at least a simpler.


I think modernizr is what you're looking for, it enables you to read the supported features from the HTML tag of your web page.

See: http://www.modernizr.com/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号