「XML入門」document.getElementByIdのサンプル
使用例
<!DOCTYPE html>
<html>
<body>
<h1 id="cft">This is a Heading</h1>
<button type="button"
onclick="document.getElementById('cft').innerHTML = 'study skill arkgame'">テスト
</button>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<h1 id="cft">This is a Heading</h1>
<button type="button"
onclick="document.getElementById('cft').innerHTML = 'study skill arkgame'">テスト
</button>
</body>
</html>
<!DOCTYPE html> <html> <body> <h1 id="cft">This is a Heading</h1> <button type="button" onclick="document.getElementById('cft').innerHTML = 'study skill arkgame'">テスト </button> </body> </html>