HTML内の文字を動的に変更
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Sample</title>
</head>
<body>
<div id="id1">変更前</div>
<javascript>
document.getElementById("id1").innerText = "変更後";
</javascript>
</body>
</html>
kinkun's blog
HTML内の文字を動的に変更
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Sample</title>
</head>
<body>
<div id="id1">変更前</div>
<javascript>
document.getElementById("id1").innerText = "変更後";
</javascript>
</body>
</html>