質問編集履歴

1

htmlソースの追加

2019/07/05 16:47

投稿

sasa_
sasa_

スコア140

test CHANGED
File without changes
test CHANGED
@@ -88,6 +88,48 @@
88
88
 
89
89
  ```
90
90
 
91
+ ```html
92
+
93
+ <!doctype html>
94
+
95
+ <html>
96
+
97
+ <head>
98
+
99
+ <meta charset="UTF-8">
100
+
101
+ <link rel="stylesheet" type="text/css" href="style.css">
102
+
103
+ <script type="text/javascript" src="test.js"></script>
104
+
105
+ <title>sample</title>
106
+
107
+ </head>
108
+
109
+ <body>
110
+
111
+ <form name="sample">
112
+
113
+ <button id="setBtn">SET</button>
114
+
115
+ <input type="text" name="num" id="value">
116
+
117
+ <button id="startBtn">START</button>
118
+
119
+ <button id="stopBtn">STOP</button>
120
+
121
+ <button id="resetBtn">RESET</button>
122
+
123
+ </form>
124
+
125
+ </body>
126
+
127
+ </html>
128
+
129
+
130
+
131
+ ```
132
+
91
133
  ### 試したこと
92
134
 
93
135
  setの宣言をやめて直接document.getElementById('setBtn').addEventListener()にするなどはしてみました。コンソールの中身を'hoge'にしても何も出ない...hogehoge...何かすごく単純なミスをしている?