<script language=javascript> <!-- function pro() { var tempA=window.prompt(’请输入你的姓名’,’’); if( tempA=="" || tempA==null ) { tempA="你没有输入任何文字"; } alert(tempA); } --> </script>