demo.htm<input type="text" name="txt">
<input type="button" onclick="window.open('in.htm')" value="Open">in.htm<script>
function CloseOpen() {
if(event.clientX<=0 && event.clientY<0) {
window.opener.document.all.txt.value=document.all.son.value;
}
}
</script>
<body onunload="CloseOpen()">
<input type="text" name="son">
<input type="button" onclick="window.open('in.htm')" value="Open">in.htm<script>
function CloseOpen() {
if(event.clientX<=0 && event.clientY<0) {
window.opener.document.all.txt.value=document.all.son.value;
}
}
</script>
<body onunload="CloseOpen()">
<input type="text" name="son">
解决方案 »
- EXTjs htmleditor 扩展图片上传在谷歌下不行
- 每选一个CHECKBOX都提交一次表单
- 我是菜鸟。。求大神帮忙做下用java做一个页面
- 一个简单的弹出层效果应用,各位大侠帮忙!!
- 锚记问题
- 怎么点一个按扭后显示一个层,然后当该层不关闭时,点页面的其他地方都没用,类似新浪邮箱的删除功能,急!!!只有40分
- 在wsh中如何获得注册表项的子项?
- 如何判断浏览器被关闭?
- 求正则!><1>用户名长度为4-20个字符,由a-z的英文字母、0-9的数字、点、减号或下划线组成。<2>密码可使用长度为8-16的任何字符(包括字母标
- 救救我吧.在模太窗体中怎樣傳值呢?
- 怎么把文本框输入的值作为参数传递到另外的网页
- 请问有没有办法改变<body>里面的属性值?
1、使用window.open()打开的页面如何把父窗口中form的数据传到子页面?
2、如果用form.commit方式打开子页面,如何定制子页面,比如去掉子页面的菜单等等?再次表示感谢!
var newWindow = window.open(.....);
newWindow.document.getElementById("name").value = thisWindowObject.value;
或
在子窗口中:
thisPage'sObject.value = opener.document.getElementById("name").value;