父窗口向子窗口传值
来源:百度文库 编辑:神马文学网 时间:2024/05/29 08:00:52
父窗口jsp
省份编号 | 省份名称 | 备注 | 操作 |
| |||
Function on_clickmodify(id){
Window.open(‘a.jsp?value=’+id,’new’,’left=100,top=200,height=560,width=600,status=no,toolbar=no,menubar=no,location=no’)
}
子窗口
省份编号 | |
省份名称 | |
备注 | |
Var v1=document.location.search.substring(7);
Var v=window.opener.tab1.rows[v1].cells[0].innerText;
Document.getElementById(“id”).value=v;
Document.getElementById(“name”).value=window.opener.document.getElementById(“test”).value;