GrandPa
GrandPa

Reputation: 504

Internet Explorer browser version specific document mode

I want my application to be opened in

Otherwise the application will fail to open some tabs.

The <meta> tag to force the browser to open in a particular document mode is like this

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

If we dont use a <meta> tag, sometimes the browser is opening our application in a different document mode.

I am using html concept.

Please tell me how we can change the document mode properly according to the browser version.

Upvotes: 0

Views: 72

Answers (2)

Evgeniy
Evgeniy

Reputation: 2921

Try IE=Edge

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

Upvotes: 1

Ahmedskaya
Ahmedskaya

Reputation: 389

<!--[if IE 8]>
    <meta http-equiv="X-UA-Compatible" content="IE=8"> or do whatever you want
<![endif]-->

<!--[if IE 9]>
    <meta http-equiv="X-UA-Compatible" content="IE=9"> or do whatever you want
<![endif]-->

Upvotes: 0

Related Questions