Open the HTML dialog from the HTA application using showModelessDialog/showModalDialog. The HTA application is running in mode ie11 (tag <meta http-equiv="x-ua-compatible" content="ie=11">
), but the dialog opened always runs in mode ie8. The tag <meta http-equiv="x-ua-compatible" content="ie=11">
in the opened document does not work.
How to open a document using showModelessDialog/showModalDialog in the mode ie11? This is needed for svg or WebGL in the dialog.
Main.hta:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta http-equiv="x-ua-compatible" content="ie=11">
</head>
<body>
<a href="#" onclick="showModelessDialog ('Dialog.hta'); return false;">Open Dialog</a>
</body>
<script>
alert (navigator.userAgent);
</script>
</html>
Dialog.hta
<html>
<head>
<meta http-equiv="x-ua-compatible" content="ie=11">
</head>
<body>
<script>
alert (navigator.userAgent);
</script>
</body>
</html>