基本編
文字を表示する(HTMLへ書き出す)
<html>
<body>
<input type="button" value="クリック1" onclick="document.all.div1.innerText='クリック1がクリック'">
<input type="button" value="クリック2" onclick="document.all.div1.innerText='クリック2がクリック'">
<div id=div1></div>
</body>
</html>
|
サンプル
|
スポンサードリンク
|