

#
#
#
サンプルコード
<p>下に書かれているスクリプトは今日の日付を表示します。</p>
<p>
<code translate="no">
<!------<br>
now = new Date()<br>
document.write("今日は" + now.getFullYear() + "年"<br>
+ (now.getMonth() + 1) + "月"<br>
+ now.getDate() + "日です")<br>
//------><br>
</code>
</p>
<p><span translate="no">太郎</span>はこのスクリプトを使ってホームページにその日の日付を表示するようにした。</p>
下に書かれているスクリプトは今日の日付を表示します。
<!------
now = new Date()
document.write("今日は" + now.getFullYear() + "年"
+ (now.getMonth() + 1) + "月"
+ now.getDate() + "日です")
//------>
太郎はこのスクリプトを使ってホームページにその日の日付を表示するようにした。