質問編集履歴

2

追記

2018/10/31 01:01

投稿

kozica
kozica

スコア58

test CHANGED
File without changes
test CHANGED
@@ -27,3 +27,11 @@
27
27
  target.href = "URL";
28
28
 
29
29
  ```
30
+
31
+
32
+
33
+ エラー内容
34
+
35
+ target.href = "URL";
36
+
37
+ Uncaught TypeError:Cannot set property 'href'

1

修正

2018/10/31 01:01

投稿

kozica
kozica

スコア58

test CHANGED
File without changes
test CHANGED
@@ -24,6 +24,6 @@
24
24
 
25
25
  var target = document.getElementById("btn-a");
26
26
 
27
- target.href = "http://popchat.jp";
27
+ target.href = "URL";
28
28
 
29
29
  ```