不用耳机的收音机:javascript中showmodeldialog如何返回值?

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/11 03:27:46

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