当前位置: 代码迷 >> ASP.NET >> 为什么从子窗口中传值到父窗口,刷新时会弹出一个窗口呢?该怎么解决
  详细解决方案

为什么从子窗口中传值到父窗口,刷新时会弹出一个窗口呢?该怎么解决

热度:7849   发布时间:2013-02-25 00:00:00.0
为什么从子窗口中传值到父窗口,刷新时会弹出一个窗口呢?
代码如下:
<script   type= "text/javascript ">
function   getdept()
{
var   result;
//result   =   window.showModalDialog( "getDeptWindow.aspx ", 'Dialog   Arguments   Value ', 'dialogHeight:400px;   dialogWidth:330px;   center:   yes;   help:   no;status:no ');
result   =   window.showModalDialog( "getDeptWindow.aspx ", ' ', 'dialogHeight:400px;   dialogWidth:330px;   center:   yes;   help:   no;status:no ');

if   (result   !=   'undefined '   &&   typeof(result)!= 'undefined ')
{
var   rv   =   result.split( ": ");
if   (rv.length   ==   2);
{
document.Form1.t1.value=rv[0];
document.Form1.t2.value=rv[1];
}

}
}
   

function   setPage()
{
window.location.href   =   window.location.href;
window.location.reload;
}
</script>

还加了   <BASE   target= "_self "> 。
这是那里出现问题啊。。



------解决方案--------------------------------------------------------
学习中..
  相关解决方案