How to enable compatibility view in Internet Explorer by coding - html

In my website text and text field is not editable in ie , when i enable compatibility view in ie ,this thing solved my problem but I want to know that is there a way to active compatibility view by coding or meta tag

Yes you can
add this meta inside <head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

Related

Is this safer to update IE=EmulateIE8 to IE=edge

I have come across a website that needs to be compatible with IE 11. While inspecting its source I have notice following meta tag;
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
And checked that its document mode is also 8. In these settings It has a lots of issues. When I updated it to latest i.e. Edge, things become fine again.
Therefore, I have updated the meta tag to;
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
But I just want to know is this safer to update the meta tag I don't know what was there reason of adding IE=EmulateIE8. Or I need to add a some condition for specifically IE11?

Make "IE9 Compatibility View" mode default when IE9 renders a site

I have developed a web site on Google App Engine using JSP and JQuery 1.11.2. The following tag is added to the Head section on every jsp.
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
The client has to be using IE9 to view this site. Also, the javascript code only works with "IE9 Compatibility View".
The issue is every time the user opens the home page IE9 renders it in "Internet Explorer 9" mode instead of ""IE9 Compatibility View"".
How can I set up the meta tag in head to force IE9 to use "IE9 Compatibility View" as Browser Mode and keep "IE9 Standards" as Document Mode?
For force IE9 to use "IE9 Compatibility View", like this:
<meta http-equiv="X-UA-Compatible" content="IE=9">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
or use X-UA-Compatible in the HTTP header.
Use this as a first meta tag in page,
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

How to get the latest IE Compatibility mode, up to IE9?

Right now I am using the following on a Master Template in SharePoint 2010...
<meta http-equiv="X-UA-Compatible" content="IE=edge">
But how do I get edge, but only up to IE9? I don't want IE to try to render a page under IE10 standards in an IE10 browser. I want it to use IE9 standards, which works a lot better....
thanks for any advice.
I think you want to change that to
<meta http-equiv="x-ua-compatible" content="IE=EmulateIE9" >
See http://msdn.microsoft.com/en-us/library/jj676915(v=vs.85).aspx for more details.

How can set the ie9 standards for all the pages in the site

I have try this more then 2 hours.My site have html5 and css.In IE 8,9,10 some of my side page display document mode as Quirks so the page is not looking good.I have checked in Google they show add the meta tag after the title,but the page still display in quirks mode.how can change the page default type as ie9 standards.The below code i used for standard tag conversion.
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<meta http-equiv="x-ua-compatible" content="IE=10; IE=9; IE=8;" />
<meta http-equiv="x-ua-compatible" content="IE=100" />
Do you have a valid DOCTYPE set on every page? If not, IE automatically goes into quirks mode on pages that have no DOCTYPE.

meta http-equiv X-UA-Compatible

<meta http-equiv="X-UA-Compatible" content="IE=9" >
the above line of code forces the browser to make
Document mode to IE 9 standard and
Browser mode to IE 9 Compatiblity mode
How can i make Document mode to IE 9 standard and browser mode to IE 9 mode
this works for me..
<!DOCTYPE html>
<html>
<head>
<title>title</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
Do you have any other links or scripts above your X-UA-Compatible meta tag in your <head>? If so this might be causing the problem.
Also make sure to check the compatibility settings in your browser itself by going to:
Tools --> Compatability View Settings
There are several possible explanations, such as HTTP headers overriding the meta tag, domain name being blacklisted by Microsoft, or your local admin having forced IE to Compatibility mode. For a description of some possibilities and possible cures, check out IE8 and IE9 Complications in “Activating Browser Modes with Doctype”.