showModalDialog基本操作-父子窗口互传参数
2009-12-01 18:44
405 查看
子窗口代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>子窗口</title> </head> <body> 请输入要返回的值: <input name="txtName" type="text" id="txtName" /> <input type="submit" name="Submit" value="确定" onclick='onOK();' /> <script type="text/javascript"> document.getElementById("txtName").value = window.dialogArguments; function onOK(){ var runValue=new Array; runValue[0]=document.getElementById("txtName").value; window.returnValue = runValue; window.close(); } </script> </body> </html>
相关文章推荐
- showModalDialog基本操作:父子窗口互传参数
- window.showModalDialog父子窗口参数传递
- JS window 对象 open方法弹窗实现父子窗口中的参数传递
- 详解layui弹窗父子窗口之间传参数的方法
- 窗口(Window对象)基本操作应用示例(一)
- 【转】总结JavaScript(Iframe、window.open、window.showModalDialog)父窗口与子窗口之间的操作
- 总结JavaScript(Iframe、window.open、window.showModalDialog)父窗口与子窗口之间的操作
- 总结JavaScript(Iframe、window.open、window.showModalDialog)父窗口与子窗口之间的操作
- C/C++编写dll动态链接库使用操作与非基本类型参数声明错误
- 《实用OpenCV》<四> 图像和GUI窗口的基本操作(4)
- jsp showModalDialog父子窗口传值
- 总结JavaScript(Iframe、window.open、window.showModalDialog)父窗口与子窗口之间的操作
- C/C++学习之C提高----函数调用模型、指针做函数参数、字符串的基本操作、一级指针内存模型建立
- nginx 安装、操作命令、基本配置与参数说明
- JavaScript(Iframe、window.open、window.showModalDialog)父窗口与子窗口之间的操作
- iframe的父子窗口之间的对象相互调用基本用法
- iframe的父子窗口之间的对象相互调用基本用法
- 数据窗口中各项指标的基本操作
- js父子窗口传值以及当前页面在js前台如何获得url参数
- 总结JavaScript(Iframe、window.open、window.showModalDialog)父窗口与子窗口之间的操作