回答編集履歴
1
markdown
answer
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
> document.getElementById('iframe_id').contentWindow.location.replace('test.txt');
|
8
8
|
> ```
|
9
9
|
|
10
|
-
この動作を実現するなら、iframe要素ノードの`srcプロパティ書き換えで代替可能かもしれません。
|
10
|
+
この動作を実現するなら、iframe要素ノードの`src`プロパティ書き換えで代替可能かもしれません。
|
11
11
|
ただし、私は`location.replace` は仕様を追いかけたことがありませんので、履歴に残さない以外に location.href との違いがあるこもしれません。
|
12
12
|
https://html.spec.whatwg.org/multipage/history.html#dom-location-replace
|
13
13
|
|