Click here to Skip to main content
15,905,148 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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 {"", ""}.

Thanks all
Updated 3-Jan-13 3:17am
Graham Breach 3-Jan-13 8:52am    
If you can't add server-side code, where are you planning to put the Javascript?
Bhavin Jagad 3-Jan-13 8:55am    
Thanks for pointing that. I don't have server script access(.asp file).but i can change .js files.

1 solution

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[^]
Share this answer
Bhavin Jagad 3-Jan-13 9:48am    
Thanks, Your solution is helpful to me. i got another thing from internet. trying to utilize this. Facing problem because i am not much aware about javascript. I will let you know if i get success using this way.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900