質問するログイン新規登録

質問編集履歴

1

htmlソースの追加

2019/07/05 16:47

投稿

sasa_
sasa_

スコア140

title CHANGED
File without changes
body CHANGED
@@ -43,6 +43,27 @@
43
43
  });
44
44
  }, false);
45
45
  ```
46
+ ```html
47
+ <!doctype html>
48
+ <html>
49
+ <head>
50
+ <meta charset="UTF-8">
51
+ <link rel="stylesheet" type="text/css" href="style.css">
52
+ <script type="text/javascript" src="test.js"></script>
53
+ <title>sample</title>
54
+ </head>
55
+ <body>
56
+ <form name="sample">
57
+ <button id="setBtn">SET</button>
58
+ <input type="text" name="num" id="value">
59
+ <button id="startBtn">START</button>
60
+ <button id="stopBtn">STOP</button>
61
+ <button id="resetBtn">RESET</button>
62
+ </form>
63
+ </body>
64
+ </html>
65
+
66
+ ```
46
67
  ### 試したこと
47
68
  setの宣言をやめて直接document.getElementById('setBtn').addEventListener()にするなどはしてみました。コンソールの中身を'hoge'にしても何も出ない...hogehoge...何かすごく単純なミスをしている?
48
69