在一个jsp页面中通过window.open的方法打开了一个页面,要实现在这个页面中有一个按钮,点击后再次调用window.open方法打开另一个新页面,但点击之后提示拒绝访问,请帮忙。打开第一个页面的方法
window.open(wsActionURL,"","width=800px,height=800px,toolar=0,menubar=1,scrollbars=1,status=0,resizable=0,screenX=0,screenY=0");在新页面中按钮及js函数
<script language=JavaScript>
function doPrintview()
{
window.location.reload();
window.open("printview.jsp);
}
</script>
<div align="center" class="noprint" style="position:absolute; visibility:show; left:10px; top:0px; z-index:0">
<INPUT type="button" value="打印预览" onclick="doPrintview()">
</div>
window.open(wsActionURL,"","width=800px,height=800px,toolar=0,menubar=1,scrollbars=1,status=0,resizable=0,screenX=0,screenY=0");在新页面中按钮及js函数
<script language=JavaScript>
function doPrintview()
{
window.location.reload();
window.open("printview.jsp);
}
</script>
<div align="center" class="noprint" style="position:absolute; visibility:show; left:10px; top:0px; z-index:0">
<INPUT type="button" value="打印预览" onclick="doPrintview()">
</div>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货