window.open() 和 window.showModalDialog() 的返回值
来源:互联网 发布:手机怎样恢复不了数据 编辑:程序博客网 时间:2024/05/29 15:11
用window.showModalDialog() 实现
test1.htm
===================
<script>
var a = window.showModalDialog("test2.htm")
for(i=0;i<a.length;i++) alert(a[i])
</script>
test2.htm
===================
<script>
function sendTo()
{
var a=new Array("a","b")
window.returnValue = a
window.close()
}
</script>
<body>
<form>
<input value="返回" type=button onclick="sendTo()">
</form>
用window.open() 实现
test1.htm
==========
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<script>
var a ='';
window.open("test2.htm");
function button1_onclick() {
alert(a);
}
</SCRIPT>
</HEAD>
<BODY><INPUT id=button1 type=button value=Button name=button1 LANGUAGE=javascript onclick="return button1_onclick()"></BODY></HTML>
test2.htm
======================
<script>
function sendTo()
{
window.opener.a='test';
}
</script>
<body>
<form id=form1 name=form1>
<input value="返回" type=button onclick="sendTo()" id=button1 name=button1>
</form>
- window.open() 和 window.showModalDialog() 的返回值
- 获取javascript window.open/window.showModalDialog的传递值和返回值
- window.open、window.showModalDialog和window.showModelessDialog 的区别
- window.open、window.showModalDialog和window.showModelessDialog 的区别
- window.open、window.showModalDialog和window.showModelessDialog 的区别
- window.showModalDialog的返回值
- showModalDialog 和open.window的不同
- showModalDialog 和 window.open 的区别
- window.showModalDialog返回值
- window.showModalDialog模式对话框 和 window.open的区别
- window.showModalDialog 和 window.open的区别以及用法
- window.showModalDialog模式对话框 和 window.open的区别
- window.showModalDialog和window.open的参数区别
- Window.Open() 和 window.showModalDialog()用法 及传值
- window.open()和window.showModalDialog()使用方法
- Window.Open() 和 window.showModalDialog()参数
- window.open和window.showModalDialog用法
- Window.Open() 和 window.showModalDialog()参数
- 经典技术文章转载:在 XML 架构中使用命名空间
- 经典技术文章转载:SOAP编码讨论
- 经典技术文章转载:了解 XML 架构
- 经典技术文章转载:ASP.NET Web 服务如何工作
- 好好学习,天天向上
- window.open() 和 window.showModalDialog() 的返回值
- 指针基础总结
- 可重入函数与线程安全函数
- 转:P2P之UDP穿透NAT的原理与实现(附源代码)
- 有目标的过着!It Is Time
- 使用s:iterator实现可配置的页面
- IIS 7.0 Modules Overview
- 学JAVA必须知道:抽象类与接口的区别
- 趣题:用两个2算出一个5