質問編集履歴

6

2018/02/15 01:15

投稿

Madreader
Madreader

スコア13

test CHANGED
File without changes
test CHANGED
File without changes

5

2018/02/15 01:15

投稿

Madreader
Madreader

スコア13

test CHANGED
File without changes
test CHANGED
File without changes

4

2018/02/15 01:14

投稿

Madreader
Madreader

スコア13

test CHANGED
File without changes
test CHANGED
@@ -9,6 +9,10 @@
9
9
  誤用してる点をご指摘ください。
10
10
 
11
11
  参考サイトURL載せてくださると助かります。
12
+
13
+ コードはブログに張るので、
14
+
15
+ headerタグとbodyタグはいりません。
12
16
 
13
17
    
14
18
 

3

2018/02/15 01:03

投稿

Madreader
Madreader

スコア13

test CHANGED
File without changes
test CHANGED
File without changes

2

2018/02/15 01:01

投稿

Madreader
Madreader

スコア13

test CHANGED
File without changes
test CHANGED
@@ -11,6 +11,8 @@
11
11
  参考サイトURL載せてくださると助かります。
12
12
 
13
13
    
14
+
15
+ ```
14
16
 
15
17
  <form name="js">
16
18
 
@@ -51,3 +53,5 @@
51
53
  }
52
54
 
53
55
  </script>
56
+
57
+ ```

1

2018/02/15 01:00

投稿

Madreader
Madreader

スコア13

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,31 @@
12
12
 
13
13
    
14
14
 
15
+ <form name="js">
16
+
17
+  <input name="a" type="text" />x+
18
+
19
+  <input name="b" type="text" />y=
20
+
21
+  <input name="c" type="text" /><br />
22
+
23
+  <input onclick="calculate()" type="button" value="計算する" />
24
+
25
+  <br />
26
+
27
+  <input onclick="clr()" type="button" value="消去" />
28
+
29
+  <br />
30
+
31
+ </form>
32
+
33
+ <span id="a"></span>x+<span id="b"></span>
34
+
35
+ y=<span id="c"></span>
36
+
37
+ <script>
38
+
15
-     function calculate(){
39
+ function calculate(){
16
40
 
17
41
      var d = new Array(4);
18
42
 
@@ -25,3 +49,5 @@
25
49
      document.getElementById("a").innerHTML=stringa;
26
50
 
27
51
  }
52
+
53
+ </script>