Click here to Skip to main content
16,012,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,

I want to insert meta tag in head but it dosen't take in consideration this is what i have tried

What I have tried:

i have tried this instruction but it dosen't take in consideration
$('head').append('<meta http-equiv="X-UA-Compatible" content="IE=8" >');

and whene i add it directly in head it work
Posted
Updated 25-Apr-18 6:06am
Comments
F-ES Sitecore 25-Apr-18 4:35am    
Does your site have an existing http-eqiv meta tag hard-coded?

1 solution

By the time your Javascript executes, it's too late to change the IE compatibility mode.

You need to add a static meta tag to the file, or send the header from the server. If you use the meta tag, it needs to come before anything else except the title tag.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900