资源预览内容
第1页 / 共2页
第2页 / 共2页
亲,该文档总共2页全部预览完了,如果喜欢就下载吧!
资源描述
父窗体: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 = course.cname; 课程 id:课程名:子窗体: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;course.cname = document.getElementById(“cname“).value;window.returnValue = course; window.close();
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号