Hi everybody,
I try to render a html page as IE8 , but I am using IE11.
I try it like this:
[code]
var html = document.getElementsByTagName("html")[0];if (isIE){ html.className = html.className || ""; if (docModeIE == 5) html.className += " ie5"; if (docModeIE == 6) html.className += " ie6"; if (docModeIE == 7) html.className += " ie7"; if (docModeIE == 8) html.className += " ie8"; };[/code]
and then for the HTML page:
[html]
<html>
<head>
<!--[if IE 6]> <html class="ie6"> <![endif]-->
<!--[if IE 7]> <html class="ie7"> <![endif]-->
<!--[if IE 8]> <html class="ie8"> <![endif]-->
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
<title>Checkbox exampleTest</title>
</head>
<body>
<p><label>
ok
<input type="checkbox" checked id="chk1" onclick="choosebox1();"/>Clear
this check box for some free advice.</label></p>
<p><label><input type="checkbox" id="chk2" onclick="choosebox2();"/>Check
this check box for a message from our sponsors.</label></p>
<div id="sampText"></div>
</body>
</html>
[/html]
but that doesnt work.
Thank you