阅读更多
function openPostWindow(url, name, applyNo, dptCde, height, width, top, left) {
var postForm = document.createElement("form");
postForm.id="postForm";
postForm.method="post";
postForm.action=url;
postForm.target=name;
// 申请单号列
var applyNoInput = document.createElement("input");
applyNoInput.type="hidden";
applyNoInput.name= "applyNo";
applyNoInput.value= applyNo;
postForm.appendChild(applyNoInput);
// 机构编码
var dptCdeInput = document.createElement("input");
dptCdeInput.type="hidden";
dptCdeInput.name= "dptCde";
dptCdeInput.value= dptCde;
postForm.appendChild(dptCdeInput);
postForm.attachEvent("onsubmit",function(){ openWindow(name, height, width, top, left); });
document.body.appendChild(postForm);
postForm.fireEvent("onsubmit");
postForm.submit();
document.body.removeChild(postForm);
}
function openWindow(name, height, width, top, left) {
window.open('about:blank',name,'height='+ height +',width='+ width +',top='+ top +',left='+ left +',toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no,depended=yes');
}