各位路过请看看!!!window.showModalDialog回传参数问题
<script language="javascript" type ="text/javascript">
function openwin2()
{
var str= window.showModalDialog("Department.aspx", "newwindow", "height=410, width=400, top=300, left=400, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no")
if(str!=null)
{
document.getElementById("txtDepart").value = str;//显示了后页面刷新了,就没有了
}
}
</script>
子页面的值已经去过来了, alert("str"); 有值,但使用 document.getElementById("txtDepart").value = str;好像页面刷新了,有清空了
请各位帮忙看看