1、window.open方式
(1)通过Opener方法调用父窗体方法传值
).value= returnValue;
}
</script>
</body>
</html>
![]()
(2)在子窗体里面用window.opener.document.from方法传值
![]()
备注:子窗体关闭要刷新父窗体,在子窗体赋值的第一句加上opener.location= opener.location.href;
2、ShowModalDialog方式(window.returnValue方法传值)
![]()
![]()
</html
备注:子窗体关闭要刷新父窗体,在打开窗体的URL后面加上 window.location.reload();
(1)通过Opener方法调用父窗体方法传值
}
</script>
</body>
</html>
(2)在子窗体里面用window.opener.document.from方法传值
2、ShowModalDialog方式(window.returnValue方法传值)
</html