Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

How do I trigger IE8 standards mode in an HTA?

$
0
0
I tried the following code in a .hta file, and various permutations of it, but the userAgent string always shows "compatible; MSIE 7.0;".  If I add the same code to a .html file and open directly in IE8, it displays the correct string "compatible; MSIE 8.0;".  How can one force IE8 standards mode in an HTA?

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>Compatibility Test</title>
    <HTA:APPLICATION ID="testApp" APPLICATIONNAME="Compatibility Test" >
</head>
<body onload="document.write(window.navigator.userAgent);">
</body>
</html>


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>