父窗体从子窗体获取值
来源:互联网 发布:decode sql 用法 编辑:程序博客网 时间:2024/05/16 02:24
1.父窗体:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>父窗体</title>
</head>
<body>
<form name="f1" action='#' method='get'>
<input type=text name='ft' value=''>
<input type='button' onclick='openWindow()' / value="弹出">
</form>
<script type="text/javascript">
<!--
function openWindow() {
newWindow = window.open('child.html','newWindow','height=300,width=300,scrollbars=auto');
if (newWindow != null) {
newWindow.focus();
}
}
//-->
</script>
</select>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>父窗体</title>
</head>
<body>
<form name="f1" action='#' method='get'>
<input type=text name='ft' value=''>
<input type='button' onclick='openWindow()' / value="弹出">
</form>
<script type="text/javascript">
<!--
function openWindow() {
newWindow = window.open('child.html','newWindow','height=300,width=300,scrollbars=auto');
if (newWindow != null) {
newWindow.focus();
}
}
//-->
</script>
</select>
</body>
</html>
子窗体:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>这是子窗口</title>
</head>
<body>
<h1 align='center'>这是子窗口!</h1><hr>
<div align='center'>
<form name="fz" action='#' method='get'>
<input type=text name='tt'>
<input type='button' value='关闭' onclick='window.opener.document.f1.ft.value=document.fz.tt.value;self.close();' />
</form>
</div>
</body>
</html>
- 父窗体从子窗体获取值
- js 子窗体获取父窗体控件中的值
- 子窗体、父窗体
- 子窗体传值给父窗体
- 子窗体给父窗体传值
- 父窗体向子窗体传值
- 子窗体向父窗体传值
- 子窗体向父窗体传值
- 【C#】winform子窗体与父窗体传值,子窗体与子窗体传值
- 父窗体获取子窗体的选择数据
- WinForm母窗体获取子窗体的值
- WinForm子窗体获取母窗体的值
- # winform 用子窗体刷新父窗体,子窗体改变父窗体控件的值
- C# winform 用子窗体刷新父窗体,子窗体改变父窗体控件的值
- winform 用子窗体刷新父窗体,子窗体改变父窗体控件的值
- 父窗体打开子窗体,子窗体在打开孙子窗体的传值问题
- 子窗体刷新父窗体
- 子窗体刷新父窗体
- SSHSecureShellClient-3.2.9.rar
- 新手对一个框架的一点理解
- VBA相关的
- 华尔街金融危机对云服务的启示
- WDM驱动程序入门
- 父窗体从子窗体获取值
- 十一到了,家近了。
- 习题 51:逆序数★
- 方法9月28号
- 深入研究servlet线程安全
- vi 中的正则表达式
- 使用repeater控件时,得到选中checkbox
- 核心游记之 内存管理 kmalloc kfree
- hibernate性能優化分析