问题1
Response.Write("<script>window.showModalDialog('b.aspx?bh='"+this.Label1.Text+"');</script>");
当this.Label1.Text='123','124','123' 时 不能打开b.aspx,this.Label1.Text='123'时可以
问题2
我在a 窗体 用Response.Write("<script>window.showModalDialog('b.aspx?bh='"+this.Label1.Text+"');</script>")打开窗体b,
在b中执行下列操作:
关闭b,并将一参数传给窗体a
Response.Write("<script>window.showModalDialog('b.aspx?bh='"+this.Label1.Text+"');</script>");
当this.Label1.Text='123','124','123' 时 不能打开b.aspx,this.Label1.Text='123'时可以
问题2
我在a 窗体 用Response.Write("<script>window.showModalDialog('b.aspx?bh='"+this.Label1.Text+"');</script>")打开窗体b,
在b中执行下列操作:
关闭b,并将一参数传给窗体a
<script>
str =window.showModalDialog("modal.htm",,"dialogWidth=200px;dialogHeight=100px");
alert(str);
</script>modal.htm
<script>
window.returnValue="http://www.51js.com";
</script>
str =window.showModalDialog("modal.htm",,"dialogWidth=200px;dialogHeight=100px");
alert(str);
</script>
Response.Write(" <script>window.showModalDialog(\"b.aspx?bh="+this.Label1.Text+"\"); </script>"); 问题2.var xxx=window.showModalDialog('b.htm'); 这里xxx就是用来接收b.htm的返回值的, 只要这个窗口一关闭,xxx就得到b.htm的window.returnValue的值