Well; of course, Internet Explorer invents its own rules and anyone trying to create a form with JavaScript and submit it to an iframe also created with JavaScript will know that this causes Internet Explorer to submit it to a new tab..
Very annoying, But here is a solution.
When you’re creating your iframe, don’t create it as a DOM element, create a wrapper for it and change its innerHTML.
See below
var a = document.createElement('div');
document.appendChild(a);
a.innerHTML = '<iframe name="targetMe" id="targetMe"></iframe>'
Now your form can target that iFrame! Easy!
