我正在學習JavaScript和HTML,並且已經創建了一個網頁,其中添加了一個按鈕,單擊它可以提醒某些單詞。但它不是給alert.Please help.Here是我的代碼:Java腳本警報不起作用
<html>
<head>
<title>
Pi^LaSa^
</title>
<script type="text/javascript" >
<!--
function developers(){
alert("The NaT Language was developed by Naman Chhaparia and Tanay Shankar,while sitting on the last bench of their former class 7 C while watching a boring dance practice !!
Naman and Tanay are best friends, and currently study at St. Thomas School, Ranchi,one of the best schools of the whole of Eastern-India. ")
}
//-->
</script>
</head>
<body>
<h1><span style="font-size:28px;"> <span style="color:#FF0000;"><span style="font-size: 36px;"><strong>Pi<sup>^</sup></strong></span></span><span style="color:#40E0D0;"><span style="font-size: 36px;"><strong>La</strong></span></span><span style="color:#00FF00;"><span style="font-size: 36px;"><strong>Sa<sup>^</sup></strong></span></span></span></h1>
<h2><span style="font-size:28px;"><span style="color:#00FF00;"><span style="font-size: 36px;"><strong><sup> </sup></strong></span></span><span style="font-family:comic sans ms,cursive;"><span style="font-size: 36px;"><strong><sup><span style="font-size: 14px;">(The official website of the NaT Language)</span></sup></strong></span></span></span></h2>
<p><span style="font-size:28px;"><span style="font-family:comic sans ms,cursive;"><span style="font-size: 36px;"><span style="font-size: 14px;"><span style="font-family:arial,helvetica,sans-serif;">Hello, guys !! Welcome to the official website of the NaT (Pi<sup>^</sup>LaSa<sup>^</sup>) language, which was developed by Naman Chhaparia (</span></span></span></span></span>Pi<sup>^</sup>LaPaLaPi Mi<sup>^</sup>NoNoLaTesLaMaLoLa) , and Tanay Shankar (Sa<sup>^</sup>LaPiLa Ax Ni<sup>^</sup>NoLaPiPoLaMa).</p>
<p> </p>
<input type="button" onclick="developers();" value="Learn about the Developers.">
</body>
</html>
http://stackoverflow.com/help/how-to-ask – LBes
所以......你要我們寫一個語言處理系統適合你?祝你好運。 – David
不是大衛,我只是想知道如何去做。我爲網上衝浪很多,但徒勞無功。 –