51安居器材怎么样:ASP.NET中如何实现弹出一网页对话框,并返回一字符串?
来源:百度文库 编辑:杭州交通信息网 时间:2024/05/23 23:36:03
可以通过window.returnValue向打开对话框的窗口返回信息,当然也可以是对象。例如:
<script>
str =window.showModalDialog("modal.htm",,"dialogWidth=200px;dialogHeight=100px");
alert(str);
</script>
modal.htm
<script>
window.returnValue="/";
</script>