質問編集履歴
1
例示/実験用として利用できるドメイン名に対応
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
例えばiPhoneで閲覧しているhttps://
|
1
|
+
例えばiPhoneで閲覧しているhttps://sample.co.jpのページ内に以下のリンクがあったとします。
|
2
2
|
|
3
|
-
https://
|
3
|
+
https://sample.co.jp
|
4
4
|
```HTML
|
5
|
-
<a href="https://
|
5
|
+
<a href="https://test.com" target="_blank">開く</a>
|
6
6
|
```
|
7
7
|
|
8
8
|
↓これで開いた別ドメイン下のページ内の閉じるボタンで新規タブを閉じたいのですが、iPhoneのsafariで実現できる方法はありますでしょうか?
|
9
9
|
|
10
|
-
https://
|
10
|
+
https://test.com
|
11
11
|
```html
|
12
12
|
<button type="button onclick="window.open('about:blank','_self').close();">閉じる</button>
|
13
13
|
```
|