フォーム要素アクション、button
1446 ワード
無効化ボタン
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<button id="btn">Click Me</button>
<script>
var obtn = document.getElementById('btn');
obtn.onclick = function () {
// this.disabled = true;
// this.setAttribute('disabled', 'true');
}
</script>
</body>
</html>