js父窗口子窗口传对象

上传人:第*** 文档编号:38764866 上传时间:2018-05-07 格式:DOC 页数:2 大小:30.50KB
返回 下载 相关 举报
js父窗口子窗口传对象_第1页
第1页 / 共2页
js父窗口子窗口传对象_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《js父窗口子窗口传对象》由会员分享,可在线阅读,更多相关《js父窗口子窗口传对象(2页珍藏版)》请在金锄头文库上搜索。

1、父窗体:father.htmlNew Document function openChild()course = new Object();course = window.showModalDialog(“child.html“,window,“dialogWidth:335px;status:no;dialogHeight:300 px“); if(course != null) document.getElementById(“cid“).value = course.cid;document.getElementById(“cname“).value = ame; 课程 id:课程名:子

2、窗体:child.htmlNew Document 课程 id:课程名:var k=window.dialogArguments;course =new Object(); /获得父窗口传递来的值 if(k!=null) document.getElementById(“cid“).value = k.document.getElementById(“cid“).value;document.getElementById(“cname“).value = k.document.getElementById(“cname“).value; /设置返回到父窗口的值 function retrunValue() course.cid = document.getElementById(“cid“).value;ame = document.getElementById(“cname“).value;window.returnValue = course; window.close();

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 毕业论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号