Click here to Skip to main content
13,054,615 members (62,648 online)
Rate this:
 
Please Sign up or sign in to vote.
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
Posted 3-Jan-13 2:32am
Updated 3-Jan-13 3:17am
v3
Comments
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  
Comments
Bhavin Jagad 3-Jan-13 9:48am
   
Thanks, Your solution is helpful to me. i got another thing from internet. http://msdn.microsoft.com/en-us/library/gg699485(v=vs.85).aspx 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100