Click here to Skip to main content
15,914,444 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to check browser and if is it IE then

HTML
<meta http-equiv="X-UA-Compatible" content="IE=9" />


i want to add this line

for this i tried

i head section


HTML
  <!--[if lt IE 9]>

<meta http-equiv="X-UA-Compatible" content="IE=9" />

-->



but it not working
Posted
Comments
Sergey Alexandrovich Kryukov 17-Apr-13 2:15am    
"Not working" is not informative...
—SA

1 solution

You have to learn a bit About Conditional Comments[^]. Please read this page carefully and pay special attention to Downlevel-hidden conditional comments[^] and Downlevel-revealed conditional comments[^].

You can easily see that your conditional comment is missing the [endif] part. Please read the documentation I pointed you to.

Regards,
— Manfred
 
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