window.open方法中的数值传递
来源:互联网 发布:oracle和mysql分页区别 编辑:程序博客网 时间:2024/05/10 10:53
功能,把子页面的数值传递到父页面中
Parent..htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language="JavaScript">...
function showchild()...{
window.open("child.htm","mywin", "menubar=no,width=400,height=100,resizeable=yes");
}
</script>
</head>
<body>
<input type="button" onClick="showchild()" value="showchild"/>
<input type="text" id="parent"/>
</body>
</html>
<html>
<head>
<script language="JavaScript">...
function showchild()...{
window.open("child.htm","mywin", "menubar=no,width=400,height=100,resizeable=yes");
}
</script>
</head>
<body>
<input type="button" onClick="showchild()" value="showchild"/>
<input type="text" id="parent"/>
</body>
</html>
child.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language="JavaScript">...
function closechild()...{
var input=document.getElementById("child");
window.opener.document.getElementById("parent").value=input.value;
window.close();
}
</script>
</head>
<body>
<input type="text" id="child"/>
<input type="button" value="close" onClick="closechild()"/>
</body>
</html>
<html>
<head>
<script language="JavaScript">...
function closechild()...{
var input=document.getElementById("child");
window.opener.document.getElementById("parent").value=input.value;
window.close();
}
</script>
</head>
<body>
<input type="text" id="child"/>
<input type="button" value="close" onClick="closechild()"/>
</body>
</html>
- window.open方法中的数值传递
- JS window 对象 open方法弹窗实现父子窗口中的参数传递
- window.open传递参数
- 使用window.open()传递参数
- 使用window.open传递form
- window.open传递(数组)参数
- window.showModalDialog 与window.open传递参数
- window.open() 方法
- window.open()方法
- [javascript]window.open 方法
- window open方法
- window.open方法说明
- window.open() 方法
- 11. Window open() 方法
- JavaScript - window.open 方法
- Window.open()方法
- JS window.open()方法
- window.open url 参数post方式传递
- 常用正则表达式(验证版)
- 40种网站设计常用技巧
- 实现页面自动刷新,页面自动跳转,页面自动关闭
- 意外发现:网易的 Blog 是用 dwr 做的
- 为明天的光纤局域网保驾护航(白皮书)
- window.open方法中的数值传递
- 什么是mvc[转载]
- C++拷贝构造函数的几个细节
- kill excel病毒的查杀
- 模拟MSN源码
- 写博客的初衷
- JAVA规则开发篇
- 学习C++ 经典书的资源
- 关于编程恶习--看到的一篇文章,有点意思