I have a form in my html
<form id="lippForm" name="form1" action="https://somesite/entry" target="Frame" >
and in the js file, I open a new window when the form submit button is clicked with
win = window.open('about:blank', 'Frame', 'top=' + top + ', left=' + left + ', width=' + width + ', height=' + height + ', location=no, status=1, toolbar=0, menubar=0, resizable=1, scrollbars=1');
Then I set the target of this form into the new window,
document.getElementsByName("form1")[0].target = "Frame";
For browsers other than IE11, this works and the response of the form post shows in the new window. But on IE11, this works only when I open the html directly with the browser. If I serve the html and the js file on a localhost, the form post response will show in the parent window and the newly opened window will be blank.
I think it has something to do with the domain check in IE11 since it only happens when I hosts it on the server?
Does anyone know why and is there anyway to bypass this? Thanks