Showing posts with label IE. Show all posts
Showing posts with label IE. Show all posts

Tuesday, 21 August 2012

Fixing innerHTML IE9


        var newdiv = document.createElement("div");
        newdiv.innerHTML = "This is for test" ;
        var container = document.getElementById("container");
        container.appendChild(newdiv);


Sunday, 5 August 2012

Enable compatibility mode for IE in C#


<html>
<head>
<meta http-equiv="X-UA-Compatible"content="IE=9;IE=8; IE=7; IE=EDGE" />
<title>My webpage</title>
</head>
<body>
<p>Content goes here.</p>
</body>
</html>

Now it'll try IE9 mode first, IE8, then IE7. You can even set IE=EDGE so it'll use the highest mode possible.

The X-UA-Compatible header is not case sensitive; however, it must appear in the header of the webpage (the HEAD section) before all other elements except for the title element and other meta elements.


Manually
[image[2].png]