title: How can I programmatically disable IE compatibility mode?
body: <p>I have been stuck on this one for a while - I couldn't figure out why a website renders differently in two identical versions of Internet Explorer. Half an hour ago I came across a compatibility mode button in IE which made me really angry. </p>
  
  <p>Disabling compatibility mode has fixed my problem.</p>
  
  <p>Is there a way to disable it programmatically, i.e. from a web page?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Just came across this blog <a href="https://blogs.msdn.com/b/askie/archive/2009/03/23/understanding-compatibility-modes-in-internet-explorer-8.aspx" rel="noreferrer">https://blogs.msdn.com/b/askie/archive/2009/03/23/understanding-compatibility-modes-in-internet-explorer-8.aspx</a> </p>
  
  <p>I'll post an example code after reading the article</p>