如题所述
promptåªæ¯å¼¹åºä¸ä¸ªå¯¹è¯æ¡
<html><head>
<script type="text/javascript">
function disp_prompt() {
var name = prompt("请è¾å ¥æ¨çåå", "Bill Gates") if (name != null && name != "") {
document.write("ä½ å¥½ï¼" + name + "ï¼ä»å¤©è¿å¾å¥½åï¼")
}
}
</script>
</head>
<body>
<input type="button" onclick="disp_prompt()" value="æ¾ç¤ºä¸ä¸ªæ示æ¡" />
</body>
</html>
温馨提示:答案为网友推荐,仅供参考