我有一个较小的新窗口,而不是通过下载 pdf 打开一个新标签。我只想要来自 downlado.jsp 的回调变量,即当它的工作在父窗口上完成以关闭 downlado.jsp .from 时,我调用了 send me 函数。
JavaScript:
function sendme()
{
winname = "myNewWin";
window.open("","myNewWin","width=500,height=300,toolbar=0");
lsurl = "downlado.jsp";
window.document.Form.action = lsurl;
window.document.Form.target = winName;
window.document.Form.submit();
window.setTimeout("window.close",5000);
}
例如
function callback()
{
close download jsp;
}