地下城堡2古神在哪:ASP.NET中如何实现弹出一网页对话框,并返回一字符串?
来源:百度文库 编辑:高考问答 时间:2024/05/03 02:07:07
可以通过window.returnValue向打开对话框的窗口返回信息,当然也可以是对象。例如:
<script>
str =window.showModalDialog("modal.htm",,"dialogWidth=200px;dialogHeight=100px");
alert(str);
</script>
modal.htm
<script>
window.returnValue="/";
</script>