ZackaryF
ZackaryF

Reputation: 39

Where is the IE variable stored in html conditional statements?

I've seen code like

<!--[if IE]> ... html tags <![end if]-->

I was wondering, where is the IE variable that's looked at stored? When the browser looks at if IE, which variable is it looking at to check if IE, and can it be accessed somehow?

Upvotes: 1

Views: 41

Answers (1)

painotpi
painotpi

Reputation: 6996

It's a string value that corresponds to the version of internet explorer being used.

Here are some other values, enter image description here

You can read more about the syntax here

Upvotes: 2

Related Questions