DisplayStatementAction.do 是一个下载用action , 点击open链接会跳出'打开或保存对话框' , 我想在点击open后关闭download.jsp . 下面的代码中在ie可以 ;在火狐中还会有一个空白页面出现, 每次下载完后还得关闭一个空白页面. 有知道怎么解决的么页面download.jsp源码<form AUTOCOMPLETE="off" method="POST" action="/SetupDisplayStatementPop.do" onsubmit="processUnload()">
<table id="appAsTbl">
<td><a href="javascript:doOpen();">Open</a></td></form>
<script language="javascript">
function doOpen(){
window.open('DisplayStatementAction.do','','height=100, width=100');
window.close();
}
</script>
<table id="appAsTbl">
<td><a href="javascript:doOpen();">Open</a></td></form>
<script language="javascript">
function doOpen(){
window.open('DisplayStatementAction.do','','height=100, width=100');
window.close();
}
</script>
When downloading a file you may find that Firefox launches an unwanted blank window. This occurs because the webmaster has specified that the download should start in a new blank window even though this was probably not their intention. This is a known issue