使用javascript获取ie9兼容性视图设置网站列表 [英] Get ie9 compatibility view settings website list using javascript
问题描述
大家好,
我是javascript的新手。我想检查是否添加了网站添加到浏览器的兼容性视图设置。我无法更改任何服务器端(.asp文件)代码。所以我必须使用javascript(我可以编辑.js文件)。我谷歌为此,并获得解决方案,以便为每个人添加
< meta http-equiv =X-UA-Compatiblecontent =IE = 7/>
页眉信息。但我不能改变任何服务器端代码。
我想获得你已添加到兼容性视图的网站下的网站列表:。 查看此参考图片。
根据图片我想获得列表{about.com,msdn.com}。
全部谢谢
我怀疑你是否可以从浏览器中读取列表 - 这将是一个安全漏洞,暴露用户希望访问的网站列表。
您可以查看当前页面是否使用兼容模式
http://msdn.microsoft.com/en-gb/library/ie/cc196988(v = vs.85)的.aspx [ ^ 一>
Hi All,
I am newbie in javascript. I want to check that whether website is added or not added to compatibility view settings of ie browser . I am not able to change any server side(.asp files) code. so i have to use javascript(i can edit .js file). I google for this, and get solution as to add
<meta http-equiv="X-UA-Compatible" content="IE=7" />
to every page header info. but i can''t change any server side code.
I want to get website list under Websites you''ve added to compatibility view : . see this ref image.
As per image i want to get list {"about.com", "msdn.com"}.
Thanks all
I doubt if you can read the list from the browser - that would be a security hole, exposing a list of sites the user expects to visit.
You can find out if the current page is using compatibility mode though
http://msdn.microsoft.com/en-gb/library/ie/cc196988(v=vs.85).aspx[^]
这篇关于使用javascript获取ie9兼容性视图设置网站列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!