By default, IE displays webpages in the Intranet zone in compatibility view. To change this:
Press Alt to display the IE menu.
Choose Tools | Compatibility View settings
Remove the checkmark next to Display intranet sites in Compatibility View.
Choose Close.
At this point, IE should rely on the webpage itself (or any relevant group policies) to determine the compatibility settings for your Intranet webpages.
Note that certain sites may no longer function correctly after making this change. You can use the same dialog box to add specific sites to enable compatibility view when needed.
If you have access to the server, the most reliable way of doing this is to do it on the server itself, in IIS. Go in to IIS HTTP Response Headers. Add Name: X-UA-Compatible
Value: IE=edge This will override your browser and your code.