0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Javascript HTMLを書き換える

Posted at

はじめに

Javascriptの使い方を学ぶ

参考書

目的

HTML内の要素を書き換える

実行内容

要素を書く
<p id = "choice">この要素を書き換える</p>
choice要素を時刻に置き換える
<script>
 'use script'
 document.getElementById('choice').textContent = new Date();
</script>

このように表示される。
スクリーンショット 2022-04-05 22.32.56.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?