我想問你地識唔識點用語法......thxxx10分

2006-12-12 1:34 am
我想問,,一種一去到個網,,就會彈出一個box,,之後問你叫咩名,,你就打名,,then你個名會出現係個網到,,果個語法係咩??thxxx

回答 (1)

2006-12-12 3:50 am
✔ 最佳答案
<html>
<head>
</head>
<body>
<script type="text/javascript">
var name = prompt("Please enter your name","")
if (name != null && name != "")
{
document.write("Hello " + name)
}
</script> </body>
</html>


收錄日期: 2021-04-12 17:53:28
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20061211000051KK02437

檢視 Wayback Machine 備份