各自远扬 日文:javascript中showmodeldialog如何返回值?

来源:百度文库 编辑:高校问答 时间:2024/07/05 14:09:30

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