window.open 父页面向子页面传值
来源:互联网 发布:潘玮柏和杨丞琳 知乎 编辑:程序博客网 时间:2024/05/22 04:55
父页面:{
1、给标签赋值:document.getElementById("saveAddrTypeName").value=“xxxxx”;
2、 var url="<%=path%>/addressList/toInsert.do?type=<c:out value="${bean.addrType}"/>";
window.open(url,'n<%=com.message.util.KeyGenerate.getUUID()%>','height=400, width=600,top='+(screen.availHeight-400)/2+', left='+(screen.availWidth-600)/2+',toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no');
父页面body的input标签:<input type='hidden' id="saveAddrTypeName" value=""/>
//1、先给标签赋值,2、再用window.open打开子页面
}
子页面:{
function init(){
var opn=window.opener;
var parentName=opn.document.getElementById("saveAddrTypeName").value;//获取父页面标签的值
document.getElementById("addrTypeName").value=parentName; //给子页面标签赋值
}
}
0 0
- window.open 通过子页面向父页面传值
- window.open 父页面向子页面传值
- window.open打开的页面向父页面传值
- 父页面用window.open()打开子页面,子页面向父页面回传值
- window.open子页面传值给父页面
- window.showModalDialog子页面向父页面返回值
- 子页面向父页面传值
- 子页面向父页面传值
- 子页面向父页面传值
- 子页面向父页面传值
- [转]使用window.open替代window.ShowModalDialog,完成子页面和父页面之间的传值
- window.open 子页面刷新父页面
- 子页面是父页面通过window.open弹出
- 用window.open方法实现子页面调用的父子页面传值
- window.open 子页面调用父页面方法 以及 子页面关闭事件
- window.showModelDialog子页面传值给父页面
- 关于jquery和子页面向父页面传值
- ligerui父页面向子页面传值
- SRAM与SDRAM的比较与区别
- MXNet数据加载
- 计算跑步时的热量消耗
- Git 使用规范流程
- [自动数据处理]自动化到智能化的过渡期
- window.open 父页面向子页面传值
- Java中获取文件大小的正确方法
- Bayesian facerevisited : a joint formulation 学习笔记
- 关于Ubuntu12源列表的更改-source list
- limits.h
- layout下 均分布局出现问题
- 如何在视图上显示不同效果的字体
- lightoj 1043 - Triangle Partitioning 【水题】
- Android使用adb获得activity堆栈信息