这个是为什么呢?我是在执行页面上执行了相关数据库操作后用来跳转的
下面是JS代码:<script language="JavaScript" src="../../common/script.js">
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--
if(window.opener && !window.opener.closed){
window.open('print.asp?ordersn=<%=ordersn%>',200,600)
opener.location.reload()
window.dialogArguments.location.reload()
window.close()
}//-->
</SCRIPT>执行页面是用<a href="javascript:window.showModelessDialog('action.asp?id=<%=id%>',700,500)">处理</a>打开的
运行了JS代码后跳转不到print.asp但是用<a href="javascript:window.open('action.asp?id=<%=id%>',700,500)">处理</a>打开的
运行JS代码后可以跳转到print.asp请高手指点

解决方案 »

  1.   

    <a href="javascript:window.showModalDialog('action.asp?id=<%=id%>',700,500)">处理</a>
    showModelessDialog --> showModalDialog
      

  2.   

    <a href="javascript:window.showModalDialog('http://localhost/action.asp?id=<%=id%>','dialogWidth=700px;dialogHeight=500px');">处理</a>
      

  3.   

    <a href="javascript:window.showModalDialog('http://localhost/action.asp?id=<%=id%>','','dialogWidth=700px;dialogHeight=500px');">处理</a>
      

  4.   


    我处理的页面可以打开
    但是我要在打开这个处理页面执行处理操作后再在这个处理页面上跳转print.asp(打印页面)就是跳转不过去
      

  5.   

    你可以在action.asp的head中<script>window.onload = function(){window.location = "print.asp";};</script>
      

  6.   


    超链接只是用showModelessDialog打开一个页面,关键是要在打开的这个页面里再跳转,我如果把opener.location.reload()和window.close()这2句注释掉,window.open('print.asp?ordersn=<%=ordersn%>',200,600)这个print.asp的页面也不会打开,父页面会刷新,而当前页面也会关闭,为什么呢
      

  7.   

    经过多次尝试后,2个问题出现,第一个就是window.open('print.asp?ordersn=<%=ordersn%>',200,600)这句在已经打开的showModelessDialog中无法跳转,我把这句后面的刷新和关闭语句都注释掉了,纯粹跳转,跳出来是空白的,什么都没有。第二个就是刷新父页面我用window.dialogArguments.location.reload()这句可以实现,但是showModelessDialog这个对话框就会自动关闭。
    我需要的是showModelessDialog这个对话框跳转到print.asp页面,父页面刷新。