Parent Window have this Function
such as
function SetNewValue(thisValue){
var theform=document.form1;
theform.UserName.value=thisValue;
}
Child Window call this Function when Closed self
<body onunload="Javascipt:window.opener.SetNewValue(document.form2.UserName.value);">
such as
function SetNewValue(thisValue){
var theform=document.form1;
theform.UserName.value=thisValue;
}
Child Window call this Function when Closed self
<body onunload="Javascipt:window.opener.SetNewValue(document.form2.UserName.value);">
解决方案 »
- jquery圆角 没效果
- 以行为单位打乱排序?在线等~ 谢谢~~
- 怎样把下面这段代码的日期格式改成这种格式的?20080102 20081122
- jquery 拖拽中 textarea 文本消失问题
- 用asp javascript技术可以实现同步传输吗
- 求一正则表达式?
- frame的使用!如何退出当前的frame并转到一个非frame页中?
- 几个小技巧问题,送分!
- window.open显示窗体初始位置
- vue中数据在页面中的传递
- 有两列是DropDownList,怎样通过第一个DropDownList来控制第二个DropDownList的数据源?
- 请问为什么按键是图片的按键设置“disabled”为“true”会提示错误?多谢
FatherFrameName.FormName.InputName.Value="XXXX"
end sub
<input type="text" name="txt">
a.htm<body onunload="CloseOpen()">
<script>
function CloseOpen() {
if(event.clientX<=0 && event.clientY<0) {
window.opener.document.all.txt.value=document.all.son.value
}
}
</script>
<input type="text" name="son">