I am looking for some code (either PHP or JavaScript) would work well to check if a user viewing a page is using compatibility mode.
Then I can use that code to do some conditional statements, or basically give them a notification to turn it off.
In the upper corner of Internet Explorer, select the Tools button, and then select About Internet Explorer. Open Internet Explorer, at the upper right, select the Tools button, and then choose About Internet Explorer.
Add the extension to Chrome and follow the on-screen instructions that appear during the installation process. When the IE address bar is successfully installed, click the settings icon in the IE address bar. On the IE Tab Options and Settings page, scroll down to IE Compatibility Mode and click IE 11 Standards Mode.
Force them to:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
This will disable Compatibility View, unless the user then goes and specifically turns it off by going into the Developer Tools and changing it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With