1
POST 정보에 다음 정보를 사용하고 있으며 양식 요소를 만들 때 "Permission denied"예외가 발생합니다.정보를 다른 페이지에 POST 할 때 권한이 거부 되었습니까?
var newWindow = window.open('', '_blank', 'alwaysRaised=yes,toolbars=no, menubar=no, location=no, scrollbars=yes, resizable=yes, status=yes,left=10000, top=10000, width=10, height=10, visible=none', '');
var tempFormElement = newWindow.document.createElement('form');
tempFormElement.method = 'post';
tempFormElement.action = urlToOpen;
var tempInputElement;
tempInputElement = newWindow.document.createElement('input');
tempInputElement.setAttribute('TPLInfo', JSON.stringify(linkageInfo));
tempFormElement.appendChild(tempInputElement);
tempFormElement.submit();
newWindow.document.body.removeChild(tempFormElement);
newWindow.close();
제안 해주십시오.
@mplungjan -이 당신이 (이 마지막 두 줄에 대한 문제가 발생할 수 있지만) 작업이되도록 설정 할 수 있는지에 대한 제한은 없으며, 영업 이익은 오류가 어쨌든 두 줄 그 전에 말한다 . – Quentin
누락 된 변수에 대한 데이터를 추가 한 후에 문제를 재현 할 수 없습니다. 유일한 오류는 body에서 tempFormElement를 제거하려고 시도한 경우입니다 (본문에 추가하지 않았기 때문에). – Quentin
웹 서버에서 10px보다 작은 pos 10000 창을 열 수 있습니까? – mplungjan