读书人

为什么从子窗口中传值到父窗口刷新时

发布时间: 2012-03-12 12:45:32 作者: rapoo

为什么从子窗口中传值到父窗口,刷新时会弹出一个窗口呢?
代码如下:
<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 "> 。
这是那里出现问题啊。。



[解决办法]
学习中..

读书人网 >asp.net

热点推荐