我这儿有三个页面:
a页面 以showModalDialog 的方式打开 b页面
b页面 以showModalDialog 的方式打开 c页面
a b c 按个页面中,head 标签中都加上了 <base target="_self" /> 问题是 我在关闭c页面时,老是弹出一个新的页面,显示的是b页面的内容,我不想弹出新页面--关闭c页面回到已有的b页面关闭b页面回到已有的a页面
这个怎么实现呢?
a页面 以showModalDialog 的方式打开 b页面
b页面 以showModalDialog 的方式打开 c页面
a b c 按个页面中,head 标签中都加上了 <base target="_self" /> 问题是 我在关闭c页面时,老是弹出一个新的页面,显示的是b页面的内容,我不想弹出新页面--关闭c页面回到已有的b页面关闭b页面回到已有的a页面
这个怎么实现呢?
追加上这个看一看
a.aspx页面中 window.showModalDialog("b.aspx?htno=" + htno, "", "dialogWidth=850px;dialogHeight=850px; center=yes;resizable=yes;status=yes;edge=raised;");b.aspx页面中window.showModalDialog('c.aspx');location.replace(location.href);return false;点击c页面右上角的叉叉,要回到b页面,点击b页面的叉叉有会到a页面现在是回到b页面会弹出新页面,回到a页面不会有新页面
如:<head runat="server">
<title>无标题页</title>
<meta http-equiv="pragma" content="no-cache" />
<base target="_self" />
...............
...............
</head>
:<head runat="server">
<title>无标题页</title>
<meta http-equiv="pragma" content="no-cache" />
<base target="_self" />
...............
...............
</head>
我试过了,,,不管是加一个页面还是两个页面还是三个页面,,都不可以啊,,,不知道问题出在哪
http://dotnet.aspx.cc/article/00000000-0000-0000-0000-00000000000f/read.aspx
var url=window.dialogArguments.location;
window.dialogArguments.location=url;
this.close();}关闭B页面的时候 调用这个
function reloadParentNoMes(){
var url=window.dialogArguments.location;
window.dialogArguments.location=url; this.close();
}关闭C页面的时候试试这个。
function reloadParentNoMes(){
var url=window.dialogArguments.location;
window.dialogArguments.location=url;//替换成window.dialogArguments.close(); }
b.aspx页面中window.showModalDialog('c.aspx');location.replace(location.href);return false;上面代码的意思是当c页面关闭以后,b页面执行一次刷新,我怀疑b页面在刷新时候执行了弹出b页面的代码
我也怀疑location.replace(location.href);惹的祸,LZ这句到底用来干嘛?
这句话,把两个子页面的这句话删掉,就不存在这个问题了
谢谢大家