I am running this code in IE11 browser. I am not getting FormData in the code below.
Could you please tell what changes I may need here to get FormData object here when I run this code in IE11 ?
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<meta http-equiv="X-UA-Compatible" content="IE=8">
<script>
if(window.FormData){
alert("hi"); // not printing in IE11
}
</script>
</HEAD>
( N.B:Please note, I don’t want to remove content=“IE=8” from the content of my code. I want to keep it there…also I dont wish to change that to content=“IE=Edge” as this breaking my page layout.)
No you are not running IE11 but an emulated IE8 because that’s what the meta tag is telling the browser to do. You will lose all of IE11’s improvements and revert to a very buggy broken browser.
formData is ony supported in ie10+ so it won’t work in IE8 (which is what your meta tag is doing).
You should be using ‘edge’ as that makes the browser use the most current version.
If your page doesn’t work in edge mode then you are doing something badly wrong.