s7世界中单选手排名:javascript中showmodeldialog如何返回值?

来源:百度文库 编辑:高考问答 时间:2024/05/12 01:22:26

<script>
str =window.showModalDialog("modal.htm",,"dialogWidth=200px;dialogHeight=100px");
alert(str);
</script>
modal.htm
<script>
window.returnValue="你要返回的字符串";
</script>