3. 変数を生成 <9p>


<html>
<head><title>TIME</title></head>
<body>
<script language="JavaScript">
<!--
//今日の日付をあらわす関数
now = new Date();

dd=new Date();
document.write("只今の時刻は");
document.write(dd.getHours() + "時");
document.write(dd.getMinutes() + "分です。");
document.write(now.getDate() + "日です。");
//-->
</script>
<noscript>
このページはJaveScriptが使用されています。
</noscript>
</body>
</html>