回答編集履歴
2
追記
test
CHANGED
@@ -21,3 +21,35 @@
|
|
21
21
|
|
22
22
|
|
23
23
|
```
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
# 追記
|
28
|
+
|
29
|
+
以下で再テストしてください
|
30
|
+
|
31
|
+
```javascript
|
32
|
+
|
33
|
+
<script>
|
34
|
+
|
35
|
+
function openLink(){
|
36
|
+
|
37
|
+
setTimeout(function(){
|
38
|
+
|
39
|
+
window.open("https://www.yahoo.co.jp/","_blank","width=600, height=500, menubar=no, toolbar=no, scrollbars=yes");
|
40
|
+
|
41
|
+
},100);
|
42
|
+
|
43
|
+
return false;
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
</script>
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
<a href='#' onclick='return openLink();'><img src="Button.png" alt="ボタン" width="360" height="" style="position:absolute;top:10px;left:30px;"></a>
|
52
|
+
|
53
|
+
```
|
54
|
+
|
55
|
+
(あえてsetTimeoutする必要はなさそうですが念の為原文にあわせておきました)
|
1
調整
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
```javascript
|
6
6
|
|
7
|
-
window.open("https://www.yahoo.co.jp/","", "width=600, height=500, menubar=no, toolbar=no, scrollbars=yes");
|
7
|
+
window.open("https://www.yahoo.co.jp/","_blank", "width=600, height=500, menubar=no, toolbar=no, scrollbars=yes");
|
8
8
|
|
9
9
|
```
|
10
10
|
|